/* Custom Styles for WhatsDesk */

:root {
  --primary-color: #007BFF;
  --secondary-color: #28A745;
  --success-color: #28A745;
  --danger-color: #DC3545;
  --warning-color: #FFC107;
  --info-color: #17A2B8;
  --light-color: #F8F9FA;
  --dark-color: #343A40;
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
  min-height: 100vh;
}

/* Allow blog pages to override body styles */
body.blog-page {
  background: #fafafa !important;
  color: #2c3e50 !important;
}

/* Compact Blog Header - Content-Focused Design */
body.blog-page .blog-header-compact {
  background: #ffffff !important;
  border-bottom: 1px solid #e1e8ed !important;
  padding: 1.5rem 0 !important;
  margin-top: var(--header-height, 80px) !important; /* Account for fixed header */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

body.blog-page .blog-title-compact {
  font-size: 2rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #2c3e50 !important;
  letter-spacing: -0.01em !important;
}

body.blog-page .blog-posts-section {
  background: #fafafa !important;
  padding: 2.5rem 0 4rem !important;
}

/* Dark theme for compact header */
body.blog-page.dark-theme .blog-header-compact {
  background: #1a1a1a !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

body.blog-page.dark-theme .blog-title-compact {
  color: #ffffff !important;
}

body.blog-page.dark-theme .blog-posts-section {
  background: #0d0d0d !important;
}

body.blog-page .posts-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
  margin-bottom: 3rem !important;
}

/* Better mobile responsiveness */
@media (max-width: 768px) {
  body.blog-page .posts-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Mobile blog post alignment fixes */
  body.blog-page .post-container {
    margin: 1rem !important;
    margin-top: 70px !important; /* Less margin on mobile */
    border-radius: 8px !important;
  }
  
  body.blog-page .post-header {
    padding: 1.5rem 1rem !important;
  }
  
  body.blog-page .post-content {
    padding: 1.5rem !important;
  }
  
  body.blog-page .post-featured-image {
    max-height: 250px !important; /* Smaller on mobile */
  }
}

body.blog-page .post-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e1e8ed !important;
  height: fit-content !important;
}

body.blog-page .post-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
  border-color: #667eea !important;
}

/* CRITICAL FIX: Thumbnail-sized images for cards */
body.blog-page .featured-image {
  width: 100% !important;
  height: 160px !important; /* Small thumbnail size for card thumbnails */
  object-fit: cover !important;
  display: block !important;
}

/* Hero images for individual post pages - Fixed positioning */
body.blog-page .post-featured-image {
  width: 100% !important;
  height: auto !important;
  max-height: 350px !important; /* Reasonable hero image height */
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important; /* Remove margins for proper alignment */
}

body.blog-page .post-card .card-body {
  padding: 1.5rem !important;
  background: #ffffff !important;
}

body.blog-page .post-card .card-title {
  margin-bottom: 0.75rem !important;
}

body.blog-page .post-card .card-title a {
  color: #2c3e50 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
  display: block !important;
  transition: color 0.3s ease !important;
}

body.blog-page .post-card .card-title a:hover {
  color: #667eea !important;
}

body.blog-page .post-card .card-text {
  color: #64748b !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Enhanced Post Meta - Professional Author Left, Date Right Layout */
body.blog-page .post-meta-enhanced {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 2rem !important;
  padding: 1.5rem !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border-radius: 12px !important;
  border-left: 4px solid #667eea !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

body.blog-page .author-section {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

body.blog-page .author-avatar {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  flex-shrink: 0 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3) !important;
}

body.blog-page .author-details {
  display: flex !important;
  flex-direction: column !important;
}

body.blog-page .author-name {
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: #2c3e50 !important;
  margin-bottom: 0.2rem !important;
}

body.blog-page .post-category {
  font-size: 0.85rem !important;
  color: #667eea !important;
  font-weight: 500 !important;
}

body.blog-page .date-section {
  text-align: right !important;
  display: flex !important;
  flex-direction: column !important;
}

body.blog-page .post-date {
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: #2c3e50 !important;
  margin-bottom: 0.2rem !important;
}

body.blog-page .view-count {
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
}

/* Blog Card Meta - Professional Layout */
body.blog-page .post-meta-card {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  padding: 0.75rem !important;
  background: rgba(255, 255, 255, 0.6) !important;
  border-radius: 8px !important;
  border: 1px solid #e1e8ed !important;
}

body.blog-page .author-info {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.875rem !important;
}

body.blog-page .author-info .author-name {
  font-weight: 600 !important;
  color: #2c3e50 !important;
}

body.blog-page .category-tag {
  background: #f1f5f9 !important;
  color: #667eea !important;
  padding: 0.2rem 0.5rem !important;
  border-radius: 4px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  margin-left: 0.5rem !important;
}

body.blog-page .date-info {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.875rem !important;
}

body.blog-page .date-info .post-date {
  font-weight: 600 !important;
  color: #2c3e50 !important;
}

body.blog-page .post-meta-card i {
  color: #667eea !important;
  font-size: 0.8rem !important;
}

/* Dark Theme Support for Enhanced Meta */
body.blog-page.dark-theme .post-meta-enhanced {
  background: rgba(255, 255, 255, 0.05) !important;
  border-left-color: #667eea !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

body.blog-page.dark-theme .author-name,
body.blog-page.dark-theme .post-date {
  color: #ffffff !important;
}

body.blog-page.dark-theme .post-category {
  color: #8b9cf7 !important;
}

body.blog-page.dark-theme .view-count {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.blog-page.dark-theme .post-meta-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.blog-page.dark-theme .author-info .author-name,
body.blog-page.dark-theme .date-info .post-date {
  color: #ffffff !important;
}

body.blog-page.dark-theme .category-tag {
  background: rgba(102, 126, 234, 0.2) !important;
  color: #8b9cf7 !important;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
  body.blog-page .post-meta-enhanced {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1.2rem !important;
  }
  
  body.blog-page .date-section {
    text-align: left !important;
    width: 100% !important;
  }
  
  body.blog-page .post-meta-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
}

/* Legacy post-meta for any remaining instances */
body.blog-page .post-meta {
  color: #94a3b8 !important;
  font-size: 0.875rem !important;
  margin-bottom: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}

body.blog-page .post-meta i {
  color: #667eea !important;
}

body.blog-page .btn-outline-primary {
  color: #667eea !important;
  border: 2px solid #667eea !important;
  background: transparent !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.025em !important;
}

body.blog-page .btn-outline-primary:hover {
  background-color: #667eea !important;
  border-color: #667eea !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

/* Individual blog post page styles - Fixed alignment */
body.blog-page .post-container {
  background: #ffffff !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  margin-top: 80px !important; /* Proper spacing from fixed header */
  border-radius: 16px !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
  position: relative !important;
}

body.blog-page .post-header {
  padding: 2.5rem 2rem 2rem !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  text-align: center !important;
  position: relative !important;
}

body.blog-page .post-title {
  font-size: clamp(2rem, 5vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-bottom: 1rem !important;
  letter-spacing: -0.02em !important;
  color: white !important;
}

body.blog-page .post-content {
  padding: 2.5rem !important;
  font-size: 1.125rem !important;
  line-height: 1.8 !important;
  color: #2c3e50 !important;
}

/* YouTube Embed Styling */
body.blog-page .youtube-embed-container {
  position: relative !important;
  padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
  height: 0 !important;
  overflow: hidden !important;
  margin: 2rem 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

body.blog-page .youtube-embed-container iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 12px !important;
}

body.blog-page .newsletter-signup {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border-radius: 16px !important;
  padding: 2.5rem !important;
  margin: 3rem 0 !important;
  text-align: center !important;
}

/* Blog page header styles - solid black for logo visibility */
body.blog-page header {
  background: #000000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
  position: fixed !important;
  z-index: 1000 !important;
}

body.blog-page .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
}

body.blog-page .nav-link:hover {
  color: #ffffff !important;
}

body.blog-page .btn.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.blog-page .btn.nav-link:hover {
  color: #ffffff !important;
}

body.blog-page .btn-primary {
  background: #667eea !important;
  border-color: #667eea !important;
  color: white !important;
}

body.blog-page .btn-primary:hover {
  background: #5a67d8 !important;
  border-color: #5a67d8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

/* Add padding to blog sections to account for fixed header */
/* Removed legacy .blog-hero - replaced with .blog-header-compact for content-focused design */

/* Post container margin is now handled in the individual styles above */

/* Dark theme styles */
body.blog-page.dark-theme {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%) !important;
  color: #ffffff !important;
}

body.blog-page.dark-theme header {
  background: rgba(0, 0, 0, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.blog-page.dark-theme .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.blog-page.dark-theme .nav-link:hover {
  color: #ffffff !important;
}

body.blog-page.dark-theme .btn-primary {
  background: #667eea !important;
  border-color: #667eea !important;
}

body.blog-page.dark-theme .blog-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

body.blog-page.dark-theme .blog-container {
  background: transparent !important;
}

body.blog-page.dark-theme .post-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
}

body.blog-page.dark-theme .post-card .card-body {
  background: rgba(255, 255, 255, 0.05) !important;
}

body.blog-page.dark-theme .post-card .card-title a {
  color: #ffffff !important;
}

body.blog-page.dark-theme .post-card .card-title a:hover {
  color: #667eea !important;
}

body.blog-page.dark-theme .post-card .card-text {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.blog-page.dark-theme .post-meta {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.blog-page.dark-theme .post-container {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) !important;
}

body.blog-page.dark-theme .post-content {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.blog-page.dark-theme .post-content h1,
body.blog-page.dark-theme .post-content h2,
body.blog-page.dark-theme .post-content h3,
body.blog-page.dark-theme .post-content h4,
body.blog-page.dark-theme .post-content h5,
body.blog-page.dark-theme .post-content h6 {
  color: #ffffff !important;
}

/* Theme toggle button - Light mode uses default Bootstrap styling for contrast */
body.blog-page.dark-theme .theme-toggle {
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  transition: all 0.3s ease !important;
}

body.blog-page.dark-theme .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-1px) !important;
}

/* Light mode theme toggle gets proper contrast */
body.blog-page .theme-toggle {
  transition: all 0.3s ease !important;
}

body.blog-page .theme-toggle:hover {
  transform: translateY(-1px) !important;
}

/* Removed duplicate .youtube-embed styles - now using .youtube-embed-container from server-side processing */

/* Comments Section Styling - Professional Design */
body.blog-page .comments-section {
  padding: 2.5rem !important;
  margin-top: 2rem !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e1e8ed !important;
}

body.blog-page .comments-section h3 {
  color: #2c3e50 !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  font-size: 1.5rem !important;
}

body.blog-page .comment {
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  background: #f8f9fa !important;
  border-radius: 8px !important;
  border-left: 4px solid #667eea !important;
}

body.blog-page .comment h6 {
  color: #2c3e50 !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

body.blog-page .comment small {
  color: #6c757d !important;
  margin-bottom: 0.5rem !important;
  display: block !important;
}

body.blog-page .comment p {
  color: #495057 !important;
  margin-bottom: 0 !important;
  line-height: 1.6 !important;
}

/* Comment Form Styling */
body.blog-page .comment-form {
  background: #f8f9fa !important;
  padding: 2rem !important;
  border-radius: 12px !important;
  margin-top: 2rem !important;
  border: 1px solid #e9ecef !important;
}

body.blog-page .comment-form h4 {
  color: #2c3e50 !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  font-size: 1.25rem !important;
}

/* Form Input Styling - Critical Fix for Dark Mode */
body.blog-page .comment-form .form-control {
  background: #ffffff !important;
  border: 2px solid #e9ecef !important;
  color: #2c3e50 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

body.blog-page .comment-form .form-control:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
  outline: none !important;
}

body.blog-page .comment-form .form-control::placeholder {
  color: #6c757d !important;
}

body.blog-page .comment-form .form-label {
  color: #2c3e50 !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
  display: block !important;
}

/* Form Grid Layout - Better Alignment */
body.blog-page .comment-form .form-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

body.blog-page .comment-form .form-group {
  margin-bottom: 1.5rem !important;
}

body.blog-page .comment-form .form-note {
  color: #6c757d !important;
  font-size: 0.875rem !important;
  margin-top: 0.25rem !important;
}

/* No Comments Message */
body.blog-page .no-comments-message {
  text-align: center !important;
  color: #6b6b6b !important;
  padding: 2.5rem 0 !important;
  font-style: italic !important;
}

/* Comment Alert Styling */
body.blog-page .comment-alert {
  padding: 0.75rem 1rem !important;
  margin-bottom: 1rem !important;
  border-radius: 8px !important;
  background: #f8f9fa !important;
  border-left: 4px solid #28a745 !important;
}

/* Back to Blog Button */
body.blog-page .back-to-blog {
  padding: 1.5rem 0 !important;
  text-align: center !important;
}

/* Dark Theme Comments Styling */
body.blog-page.dark-theme .comments-section {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) !important;
}

body.blog-page.dark-theme .comments-section h3 {
  color: #ffffff !important;
}

body.blog-page.dark-theme .comment {
  background: rgba(255, 255, 255, 0.08) !important;
  border-left-color: #667eea !important;
}

body.blog-page.dark-theme .comment h6 {
  color: #ffffff !important;
}

body.blog-page.dark-theme .comment small {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.blog-page.dark-theme .comment p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Dark Theme Comment Form - Critical Fix */
body.blog-page.dark-theme .comment-form {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.blog-page.dark-theme .comment-form h4 {
  color: #ffffff !important;
}

body.blog-page.dark-theme .comment-form .form-control {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

body.blog-page.dark-theme .comment-form .form-control:focus {
  border-color: #667eea !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

body.blog-page.dark-theme .comment-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.blog-page.dark-theme .comment-form .form-label {
  color: #ffffff !important;
}

body.blog-page.dark-theme .comment-form .form-note {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Dark Theme No Comments Message */
body.blog-page.dark-theme .no-comments-message {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Dark Theme Comment Alert */
body.blog-page.dark-theme .comment-alert {
  background: rgba(255, 255, 255, 0.1) !important;
  border-left-color: #28a745 !important;
  color: #ffffff !important;
}

/* Mobile Responsiveness for Comments */
@media (max-width: 768px) {
  body.blog-page .comments-section {
    padding: 1.5rem !important;
    margin: 1rem !important;
  }
  
  body.blog-page .comment-form {
    padding: 1.5rem !important;
  }
  
  body.blog-page .comment-form .form-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* Header Styles */
header {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
  position: absolute;
  width: 100%;
  top: 0;
}

.navbar-brand {
  margin-right: 0 !important;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

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

.navbar-nav {
  gap: 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 15px;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: #ffffff !important;
}

.btn.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.btn.nav-link:hover {
  color: #ffffff !important;
}

/* Mobile Menu Toggle (Hamburger) */
.navbar-toggler {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  transition: all 0.3s ease;
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.navbar-toggler:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
  outline: none;
}

.navbar-toggler-icon {
  background-image: none;
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
  background: rgba(255, 255, 255, 0.9);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  width: 100%;
  height: 2px;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
}

.navbar-toggler-icon::before {
  top: 0;
}

.navbar-toggler-icon::after {
  bottom: 0;
}

/* Middle line */
.navbar-toggler-icon {
  background: rgba(255, 255, 255, 0.9);
  height: 2px;
  border-radius: 2px;
  position: relative;
}

/* Animated hamburger on hover */
.navbar-toggler:hover .navbar-toggler-icon::before {
  transform: translateY(-2px);
}

.navbar-toggler:hover .navbar-toggler-icon::after {
  transform: translateY(2px);
}

.btn-primary.rounded-pill {
  background: var(--primary-color);
  border: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-primary.rounded-pill:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Floating Support Icons */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatUpDown 4s ease-in-out infinite;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.floating-icon i {
  color: rgba(59, 130, 246, 0.7);
  font-size: 18px;
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-15px) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 1;
  }
  75% {
    transform: translateY(-15px) rotate(270deg);
    opacity: 0.8;
  }
}

/* Enhanced animations for larger screens */
@media (min-width: 1200px) {
  .floating-icon {
    width: 60px;
    height: 60px;
    animation-duration: 5s;
  }
  
  .floating-icon i {
    font-size: 26px;
  }
  
  .hero-video-container {
    padding: 5px;
    animation-duration: 4s;
  }
  
  .play-button {
    width: 100px;
    height: 100px;
  }
  
  .play-button i {
    font-size: 32px;
  }
}

@media (min-width: 1400px) {
  .floating-icon {
    width: 70px;
    height: 70px;
  }
  
  .floating-icon i {
    font-size: 30px;
  }
  
  .hero-video-container {
    padding: 6px;
  }
}

/* Accessibility: Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-video-container {
    animation: none;
  }
  
  .floating-icon {
    animation: none;
  }
  
  .play-button::before {
    animation: none;
  }
  
  /* Disable button animations for users who prefer reduced motion */
  .btn-hero-primary:hover,
  .btn-hero-secondary:hover {
    animation: none;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.05"><polygon points="1000,100 1000,0 0,100"/></svg>') no-repeat bottom;
  background-size: cover;
}

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

/* Hero Typography */
.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  max-width: 90%;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 85%;
}

/* Hero Buttons */
.btn-hero-primary {
  background: rgba(255, 255, 255, 1);
  color: var(--primary-color);
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.2), transparent);
  transition: all 0.6s ease;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
  animation: primaryButtonPulse 2s ease-in-out infinite;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

@keyframes primaryButtonPulse {
  0%, 100% {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.6);
    transform: translateY(-3px) scale(1.08);
  }
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  padding: 13px 27px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 140px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-hero-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(147, 51, 234, 0.3));
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-hero-secondary:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.8);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
  animation: secondaryButtonGlow 1.5s ease-in-out infinite alternate;
}

.btn-hero-secondary:hover::before {
  width: 100%;
}

@keyframes secondaryButtonGlow {
  0% {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.8);
  }
  100% {
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.5);
    border-color: rgba(147, 51, 234, 0.8);
  }
}

/* Button click effects */
.btn-hero-primary:active, .btn-hero-secondary:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

/* Hero Features */
.hero-feature-text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.text-success {
  color: #20c997 !important;
}

/* Video Container with Animated Rainbow Border */
.hero-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  padding: 3px;
  background: linear-gradient(45deg, #4ade80, #3b82f6, #8b5cf6, #f59e0b, #ef4444, #06b6d4, #4ade80);
  background-size: 400% 400%;
  animation: gradientBorder 6s ease infinite;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(59, 130, 246, 0.15);
}

@keyframes gradientBorder {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

.hero-video-container::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: rgba(26, 26, 46, 0.95);
  border-radius: 9px;
  z-index: 1;
}

.hero-video-container:hover {
  transform: translateY(-5px) scale(1.02);
  animation-duration: 3s;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(59, 130, 246, 0.3);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.video-overlay {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.play-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(59, 130, 246, 0.3), transparent);
  animation: playButtonRotate 3s linear infinite;
}

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

.play-button:hover {
  transform: scale(1.15);
  background: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.5);
}

.play-button i {
  color: var(--primary-color);
  font-size: 24px;
  margin-left: 4px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.play-button:hover i {
  color: #1d4ed8;
  transform: scale(1.1);
}

.video-caption {
  text-align: center;
  color: #ffffff;
}

.video-caption span {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.video-caption small {
  font-size: 14px;
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.8rem;
    max-width: 100%;
  }
  
  .hero-subtitle {
    max-width: 100%;
  }
  
  .hero-video-container {
    height: 240px;
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  header {
    padding: 0.75rem 0;
  }
  
  .hero {
    padding: 90px 0 50px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.4rem;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .hero-actions {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .hero-features {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: flex-start !important;
  }
  
  .hero-video-container {
    height: 200px;
    margin-top: 1.5rem;
  }
}

/* Feature Cards */
.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: conic-gradient(transparent, rgba(59, 130, 246, 0.1), transparent);
  opacity: 0;
  transition: all 0.6s ease;
  animation: featureRotate 8s linear infinite;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.05);
}

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

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

.feature-icon {
  margin: 0 auto;
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.icon-circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  border-radius: 50%;
}

.icon-circle:hover {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(59, 130, 246, 0.1));
  border-color: rgba(74, 222, 128, 0.6);
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 15px 40px rgba(74, 222, 128, 0.3);
}

.icon-circle:hover::before {
  width: 120%;
  height: 120%;
}

/* Microphone Sine Wave Animation */
.icon-circle .fa-microphone {
  transition: all 0.5s ease;
  position: relative;
  z-index: 2;
}

.feature-card:hover .fa-microphone {
  transform: scale(0);
}

.feature-card:hover .icon-circle .fa-microphone::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent,
    #4ade80 10%,
    #22d3ee 30%,
    #8b5cf6 50%,
    #22d3ee 70%,
    #4ade80 90%,
    transparent
  );
  border-radius: 2px;
  animation: sineWave 1.5s ease-in-out infinite;
}

@keyframes sineWave {
  0% {
    transform: translate(-50%, -50%) scaleY(1) scaleX(1);
    opacity: 1;
    filter: brightness(1) saturate(1);
  }
  12% {
    transform: translate(-50%, -50%) scaleY(3.5) scaleX(1.4);
    opacity: 0.9;
    filter: brightness(1.3) saturate(1.5);
  }
  25% {
    transform: translate(-50%, -50%) scaleY(0.3) scaleX(0.7);
    opacity: 0.7;
    filter: brightness(0.8) saturate(2);
  }
  37% {
    transform: translate(-50%, -50%) scaleY(4) scaleX(1.6);
    opacity: 1;
    filter: brightness(1.5) saturate(1.8);
  }
  50% {
    transform: translate(-50%, -50%) scaleY(0.2) scaleX(0.5);
    opacity: 0.6;
    filter: brightness(0.6) saturate(2.5);
  }
  62% {
    transform: translate(-50%, -50%) scaleY(4.5) scaleX(1.8);
    opacity: 1;
    filter: brightness(1.7) saturate(2);
  }
  75% {
    transform: translate(-50%, -50%) scaleY(0.4) scaleX(0.6);
    opacity: 0.8;
    filter: brightness(0.9) saturate(2.2);
  }
  87% {
    transform: translate(-50%, -50%) scaleY(3.8) scaleX(1.5);
    opacity: 0.95;
    filter: brightness(1.4) saturate(1.7);
  }
  100% {
    transform: translate(-50%, -50%) scaleY(1) scaleX(1);
    opacity: 1;
    filter: brightness(1) saturate(1);
  }
}

/* Video Camera View Animation */
.feature-card:hover .fa-video {
  animation: videoTransform 0.6s ease-out forwards;
}

@keyframes videoTransform {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(0.3) rotate(180deg);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.2) rotate(360deg);
    background: radial-gradient(circle, rgba(239, 68, 68, 0.8) 0%, transparent 50%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
  }
}

/* Email Envelope Opening Animation */
.feature-card .fa-envelope {
  transition: all 0.5s ease;
  position: relative;
}

.feature-card:hover .fa-envelope {
  animation: envelopeOpen 1s ease-in-out infinite alternate;
}

@keyframes envelopeOpen {
  0% {
    transform: scale(1) rotateY(0deg);
    filter: hue-rotate(0deg) brightness(1);
  }
  25% {
    transform: scale(1.1) rotateY(15deg);
    filter: hue-rotate(60deg) brightness(1.2);
  }
  50% {
    transform: scale(1.2) rotateY(0deg);
    filter: hue-rotate(120deg) brightness(1.4);
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.8);
  }
  75% {
    transform: scale(1.1) rotateY(-15deg);
    filter: hue-rotate(180deg) brightness(1.2);
  }
  100% {
    transform: scale(1.3) rotateY(0deg);
    filter: hue-rotate(240deg) brightness(1.5);
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.9);
  }
}

/* Step Cards */
.step-card {
  position: relative;
  padding: 2rem 1rem;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.step-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 3rem;
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.step-icon:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

/* Step 1: Code Animation - Matrix Effect */
.step-card:hover .fa-code {
  animation: codeMatrix 2s ease-in-out infinite;
  color: #00ff00;
  text-shadow: 0 0 20px #00ff00;
}

@keyframes codeMatrix {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1) hue-rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotateY(90deg);
    filter: brightness(1.5) hue-rotate(45deg);
  }
  50% {
    transform: scale(1.2) rotateY(180deg);
    filter: brightness(2) hue-rotate(90deg);
  }
  75% {
    transform: scale(1.1) rotateY(270deg);
    filter: brightness(1.5) hue-rotate(135deg);
  }
}

/* Step 2: Comments Animation - Typing Effect */
.step-card:hover .fa-comments {
  animation: typingBubbles 1.5s ease-in-out infinite;
  color: #22d3ee;
}

@keyframes typingBubbles {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  15% {
    transform: scale(1.3);
    opacity: 0.8;
    text-shadow: 0 0 15px #22d3ee;
  }
  30% {
    transform: scale(0.9);
    opacity: 1;
  }
  45% {
    transform: scale(1.4);
    opacity: 0.7;
    text-shadow: 0 0 25px #22d3ee;
  }
  60% {
    transform: scale(0.8);
    opacity: 1;
  }
  75% {
    transform: scale(1.5);
    opacity: 0.6;
    text-shadow: 0 0 35px #22d3ee;
  }
}

/* Step 3: Brain Animation - Neural Network */
.step-card:hover .fa-brain {
  animation: neuralNetwork 2.5s ease-in-out infinite;
  color: #8b5cf6;
}

@keyframes neuralNetwork {
  0% {
    transform: scale(1);
    filter: brightness(1) hue-rotate(0deg);
    text-shadow: 0 0 10px #8b5cf6;
  }
  20% {
    transform: scale(1.2) rotate(30deg);
    filter: brightness(1.8) hue-rotate(60deg);
    text-shadow: 0 0 20px #8b5cf6, 0 0 30px #f59e0b;
  }
  40% {
    transform: scale(0.9) rotate(-15deg);
    filter: brightness(2.2) hue-rotate(120deg);
    text-shadow: 0 0 25px #f59e0b, 0 0 40px #ef4444;
  }
  60% {
    transform: scale(1.3) rotate(45deg);
    filter: brightness(2.5) hue-rotate(180deg);
    text-shadow: 0 0 30px #ef4444, 0 0 50px #22d3ee;
  }
  80% {
    transform: scale(1.1) rotate(-30deg);
    filter: brightness(2) hue-rotate(240deg);
    text-shadow: 0 0 35px #22d3ee, 0 0 60px #4ade80;
  }
  100% {
    transform: scale(1);
    filter: brightness(1) hue-rotate(360deg);
    text-shadow: 0 0 10px #8b5cf6;
  }
}

/* Step 4: Chart Animation - Growing Graph */
.step-card:hover .fa-chart-line {
  animation: growingChart 2s ease-in-out infinite;
  color: #4ade80;
}

@keyframes growingChart {
  0% {
    transform: scale(1) scaleY(1);
    filter: brightness(1);
    text-shadow: 0 0 10px #4ade80;
  }
  25% {
    transform: scale(1.2) scaleY(0.6);
    filter: brightness(1.5);
    text-shadow: 0 0 20px #4ade80;
  }
  50% {
    transform: scale(1.4) scaleY(1.8);
    filter: brightness(2);
    text-shadow: 0 0 30px #4ade80, 0 0 40px #f59e0b;
  }
  75% {
    transform: scale(1.1) scaleY(0.8);
    filter: brightness(1.3);
    text-shadow: 0 0 25px #f59e0b;
  }
  100% {
    transform: scale(1) scaleY(1);
    filter: brightness(1);
    text-shadow: 0 0 10px #4ade80;
  }
}

/* Step Cards Enhanced Hover Effects */
.step-card {
  position: relative;
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
}

.step-card:hover .step-number {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(147, 51, 234, 0.3));
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  animation: numberPulse 1s ease-in-out infinite;
}

@keyframes numberPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.2); }
}

.avatar-circle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  backdrop-filter: blur(10px);
}

/* Testimonials */
.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease-in;
  position: relative; /* Fix: Prevent overlap with CTA */
}

.testimonial-slide.active {
  display: block;
}

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

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.testimonial-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.blockquote {
  font-size: 1.25rem;
  font-style: italic;
}

/* Pricing Page Styles */
.pricing-page {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--white);
  min-height: 100vh;
}

.pricing-header {
  padding: 100px 0 40px;
  text-align: center;
}

.pricing-header h1 {
  color: #ffffff;
}

.pricing-header .lead {
  color: rgba(255, 255, 255, 0.8);
}

/* Pricing Toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.toggle-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Form Labels */
.form-label {
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  font-size: 14px;
}

/* Dark theme form labels */
.modal-content .form-label {
  color: #333 !important;
}

/* Ensure labels are visible in modal */
.modal .form-label {
  color: #495057 !important;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.3);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.discount-badge {
  background: linear-gradient(135deg, #4ade80, #06d6a0);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Pricing Cards */
.pricing-cards {
  padding: 40px 0 80px;
}

.pricing-cards .row {
  align-items: stretch;
}

.pricing-cards .col-lg-3 {
  display: flex;
  margin-bottom: 2rem;
}

.pricing-card-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 20;
}

.card-header {
  margin-bottom: 2rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.plan-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.card-pricing {
  margin-bottom: 2rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

.monthly-price, .annual-price {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
}

.period {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-pricing {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.card-features {
  flex: 1 1 auto;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.feature-highlight {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  min-height: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 50px;
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list i {
  color: #4ade80;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0;
}

.pricing-card .btn {
  opacity: 1 !important;
  visibility: visible !important;
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  margin-top: auto;
  align-self: stretch;
}

.pricing-card .btn:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  transform: translateY(-2px);
}

.pricing-card .btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.pricing-card .btn-primary:hover {
  background-color: rgba(74, 222, 128, 0.9) !important;
  border-color: rgba(74, 222, 128, 0.9) !important;
}

/* Gmail Pricing Section */
.gmail-pricing {
  padding: 40px 0 80px;
}

.gmail-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
}

.coming-soon-badge {
  position: absolute;
  top: -10px;
  right: 2rem;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.trial-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  white-space: nowrap;
  z-index: 20;
}

.gmail-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.gmail-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.gmail-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin: 0;
}

.gmail-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gmail-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.gmail-features i {
  color: #4ade80;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0 100px;
  background: rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3rem;
}

.faq-accordion {
  max-width: 100%;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.faq-question {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  flex: 1;
  padding-right: 1rem;
}

.faq-question i {
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 2rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .faq-question {
    padding: 1.25rem 1.5rem;
  }
  
  .faq-answer p {
    padding: 0 1.5rem 1.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Footer Styles */
footer {
  background: rgba(15, 15, 35, 0.8) !important;
  backdrop-filter: blur(20px);
  color: var(--white);
}

footer h5 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
}

footer .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer .text-muted:hover {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
}

footer .social-links a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.3s ease;
}

footer .social-links a:hover {
  color: var(--primary-color) !important;
}

footer p.text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
  line-height: 1.6;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

footer .text-center.text-muted p {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Old pricing styles for compatibility */
.pricing-display {
  margin: 1rem 0;
}

.price {
  color: var(--primary-color);
}

/* Features Page Styles */
.features-page {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--white);
  padding-top: 80px;
  padding-bottom: 80px;
}

.feature-section {
  padding: 60px 0;
}

.feature-image {
  padding: 0 20px;
}

.image-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  font-weight: 500;
}

.feature-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
  loading: lazy;
  max-width: 100%;
}

.feature-image img:hover {
  transform: translateY(-5px);
}

.feature-text {
  padding: 0 20px;
}

.feature-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.feature-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
  .feature-section {
    padding: 40px 0;
  }
  
  .feature-image {
    margin-bottom: 2rem;
    padding: 0 15px;
  }
  
  .feature-text {
    padding: 0 15px;
  }
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  z-index: 10; /* Fix: Elevate above overlapping elements */
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="0,0 1000,100 1000,0"/></svg>') no-repeat top;
  background-size: cover;
  pointer-events: none; /* Fix: Make overlay non-interactive */
  z-index: 0; /* Fix: Put overlay behind content */
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 24px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--secondary-color), #218838);
}

.btn-success:hover {
  background: linear-gradient(135deg, #218838, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Fix CTA button click blocking - Ensure buttons sit above overlay */
.cta-section .container, 
.cta-section .cta-actions, 
.cta-section .btn { 
  position: relative;
  z-index: 1;
}

/* CTA Section Button Styles */
.cta-section .btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-section .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Prevent testimonial carousel from overlapping CTA */
.testimonial-carousel { 
  position: relative; 
  overflow: hidden; 
  z-index: 1; 
}

/* Prevent footer decorative elements from blocking clicks */
footer::before, 
footer::after { 
  pointer-events: none; 
}

/* Flash Messages */
.flash-messages {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1050;
  max-width: 400px;
}

.flash-messages .alert {
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-control {
  border-radius: 8px;
  border: 2px solid var(--gray-300);
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Dark Mode */
body.dark-mode {
  background: #121212;
  color: #E0E0E0;
}

body.dark-mode header {
  background: rgba(30, 30, 30, 0.95);
}

body.dark-mode .feature-card {
  background: #1E1E1E;
  border-color: #333;
  color: #E0E0E0;
}

body.dark-mode .pricing-card {
  background: #1E1E1E;
  border-color: #333;
  color: #E0E0E0;
}

body.dark-mode .modal-content {
  background: #1E1E1E;
  color: #E0E0E0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .pricing-card.popular {
    transform: none;
    margin-bottom: 2rem;
  }
  
  .step-card {
    margin-bottom: 3rem;
  }
}

/* Animations */
@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-on-scroll {
  animation: slideInUp 0.6s ease-out;
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.form-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
}

/* Social Links */
.social-links a {
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--primary-color) !important;
}

/* Accordion Dark Theme */
.accordion {
  --bs-accordion-bg: rgba(255, 255, 255, 0.05);
  --bs-accordion-border-color: rgba(255, 255, 255, 0.1);
  --bs-accordion-btn-color: #ffffff;
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-bg: rgba(255, 255, 255, 0.08);
  --bs-accordion-active-color: #ffffff;
  --bs-accordion-btn-focus-border-color: rgba(74, 222, 128, 0.5);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(74, 222, 128, 0.25);
}

.accordion-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px !important;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.accordion-button {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 1.5rem 2rem !important;
  font-size: 1.1rem !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  border-color: rgba(74, 222, 128, 0.5) !important;
  box-shadow: 0 0 0 0.25rem rgba(74, 222, 128, 0.25) !important;
}

.accordion-button::after {
  background-image: none;
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.accordion-body {
  background: rgba(255, 255, 255, 0.02) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 0 2rem 1.5rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.6;
}
