/* Custom styles for BizBots AI Solutions */
/* Keep this minimal - most styling uses Tailwind utility classes */

:root {
  --brand-primary: #2563eb;
  /* blue-600 */
  --brand-secondary: #9333ea;
  /* purple-600 */
  --text-primary: #1f2937;
  /* gray-800 */
  --text-secondary: #6b7280;
  /* gray-500 */
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom font if needed - uncomment and add Google Fonts link in HTML */
/* body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
} */

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Custom scrollbar (webkit browsers) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Form validation styles */
.form-error {
  border-color: #ef4444 !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Success message */
.success-message {
  background-color: #d1fae5;
  color: #065f46;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Mobile menu animation */
#mobile-menu {
  transition: max-height 0.3s ease-in-out;
}

/* Hover effects for cards */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Print styles */
@media print {

  header,
  footer,
  #mobile-toggle,
  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Root Colors & Fonts === */
:root {
  --primary: #00aaff;
  --secondary: #0d0d0d;
  --accent: #ffffff;
  --gradient1: #0b0f24;
  --gradient2: #0a1a44;
  --font-main: 'Poppins', sans-serif;
}

/* === Body Styling === */
body {
  font-family: var(--font-main);
  background: var(--secondary);
  color: var(--accent);
  overflow-x: hidden;
}

/* === Hero Section === */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient1), var(--gradient2));
}

/* === Particles Canvas Layer === */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* === Text Overlay === */
.overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  color: #fff;
  animation: fadeIn 1.5s ease-out;
}

/* === Logo === */
.logo {
  width: 100px;
  margin-bottom: 20px;
  animation: float 6s ease-in-out infinite;
}

/* === Headline === */
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

/* === Paragraph === */
.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #cfd8dc;
}

/* === CTA Button === */
.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #0088cc;
  transform: translateY(-3px);
}

/* === Keyframe Animations === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Accessibility: respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  #particles-js {
    display: none !important;
  }

  .logo {
    animation: none !important;
  }

  .animate-fade-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* WhatsApp floating button — Bizbit */
.bizbit-wa {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 72px;
  /* 1.75x larger from original 56px */
  height: 72px;
  background: #25D366;
  /* WhatsApp green */
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 10000;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.bizbit-wa:hover {
  transform: translateY(-6px);
}

.bizbit-wa:active {
  transform: translateY(-2px) scale(0.98);
}

.bizbit-wa:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.24);
  outline-offset: 4px;
}

.bizbit-wa__icon {
  width: 36px;
  /* 1.75x larger from original 28px */
  height: 36px;
  display: block;
}

@media (max-width: 420px) {
  .bizbit-wa {
    right: 1rem;
    bottom: 1rem;
    width: 64px;
    height: 64px;
  }

  .bizbit-wa__icon {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .bizbit-wa,
  .bizbit-wa:hover,
  .bizbit-wa:active {
    transition: none;
    transform: none;
  }
}

/* Navigation Dropdown Styles */
.nav-btn {
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.2s ease;
}

.nav-btn:hover {
  color: #2563eb;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 16rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: all 0.2s ease-out;
  z-index: 50;
}

.group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #374151;
  transition: all 0.2s ease;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #eff6ff;
  color: #2563eb;
}

/* Mobile menu improvements */
@media (max-width: 768px) {
  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #f9fafb;
    margin-top: 0.5rem;
    border-radius: 0.375rem;
  }

  .nav-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
  }

  .nav-btn:hover {
    background-color: #f9fafb;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .dropdown-menu {
    transition: none;
  }
}

/* ===== SIDEBAR NAVIGATION STYLES ===== */

/* Sidebar container */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.closed {
  transform: translateX(-280px);
}

/* Brand section */
.sidebar .brand {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar .brand img {
  width: 40px;
  height: 40px;
}

.sidebar .brand h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
}

.sidebar .brand .text-blue-600 {
  color: #3b82f6;
}

/* Navigation links */
.sidebar .nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .nav-links>li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar .nav-links a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.sidebar .nav-links a:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.sidebar .nav-links a.active {
  background-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border-right: 3px solid #3b82f6;
}

.sidebar .nav-links a i {
  width: 20px;
  margin-right: 0.75rem;
  text-align: center;
}

/* Dropdown buttons */
.sidebar .dropdown-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 1rem;
}

.sidebar .dropdown-btn:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.sidebar .dropdown-btn.active {
  background-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.sidebar .dropdown-btn i {
  width: 20px;
  margin-right: 0.75rem;
  text-align: center;
}

.sidebar .dropdown-btn::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.sidebar .dropdown-btn.active::after {
  transform: rotate(180deg);
}

/* Dropdown containers */
.sidebar .dropdown-container {
  display: none;
  background-color: rgba(0, 0, 0, 0.2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .dropdown-btn.active+.dropdown-container {
  display: block;
}

.sidebar .dropdown-container li {
  border-bottom: none;
}

.sidebar .dropdown-container a {
  padding: 0.75rem 1.5rem 0.75rem 3.25rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.sidebar .dropdown-container a:hover {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.sidebar .dropdown-container a.active {
  background-color: rgba(59, 130, 246, 0.25);
  color: #3b82f6;
}

/* Main content adjustment */
.main-content {
  margin-left: 280px;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
}

.main-content.full {
  margin-left: 0;
}

/* Hamburger toggle button */
.hamburger {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.hamburger:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.hamburger i {
  font-size: 1.25rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-280px);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .hamburger {
    display: block;
  }
}

/* Overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar-overlay.active {
  display: block;
}

/* Scrollbar styling for sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Ensure WhatsApp button stays visible above sidebar */
.bizbit-wa {
  z-index: 10001;
}

/* Adjust hero section for sidebar */
@media (min-width: 769px) {
  .hero {
    margin-left: 0;
  }
}

/* Responsive adjustments */
@media (prefers-reduced-motion: reduce) {

  .sidebar,
  .main-content,
  .hamburger {
    transition: none;
  }
}

/*
 Additional utility classes for Next.js components */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

/* Search input focus styles */
.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
  border-color: transparent;
}

/* Service card hover effects */
.service-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Category filter styles */
.category-filter {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive grid improvements */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Loading states */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* TSParticles Global Background */
#tsparticles {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

/* Ensure particles don't interfere with content - override existing z-index */
.main-content {
  z-index: 10 !important;
}

.sidebar {
  z-index: 1000 !important;
}

.sidebar-overlay {
  z-index: 999 !important;
}

.bizbit-wa {
  z-index: 10001 !important;
}

/* Hero section particles container (keep for compatibility) */
#particles-js {
  display: none;
  /* Hide the old particles.js container */
}

/* Ensure hero content is above particles */
.hero .overlay {
  position: relative;
  z-index: 2;
}

/* Performance optimizations for particles */
#tsparticles canvas {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  #tsparticles {
    display: none !important;
  }
}

/* CSS Fallback Animation for Particles */
#particles-fallback {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.05;
}

#particles-fallback::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0, 170, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 170, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 170, 255, 0.2) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.1;
  }
}

/* Ensure particles container is always behind content */
#tsparticles,
#particles-fallback {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

/* Debug styles for development */
.particles-debug {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
  z-index: 9999;
  border: 1px solid #00aaff;
}

/* ===== MODERN PROFESSIONAL BACKGROUND ANIMATION ===== */
.modern-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Animated gradient background */
.gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.12) 0%,
      rgba(147, 51, 234, 0.12) 25%,
      rgba(16, 185, 129, 0.12) 50%,
      rgba(245, 158, 11, 0.12) 75%,
      rgba(239, 68, 68, 0.12) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Floating geometric shapes */
.shapes-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(147, 51, 234, 0.25));
  backdrop-filter: blur(1px);
}

.shape-1 {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 10%;
  animation: float1 20s ease-in-out infinite;
}

.shape-2 {
  width: 80px;
  height: 80px;
  top: 20%;
  right: 15%;
  animation: float2 25s ease-in-out infinite reverse;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 20%;
  animation: float3 18s ease-in-out infinite;
}

.shape-4 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  right: 10%;
  animation: float1 22s ease-in-out infinite reverse;
}

.shape-5 {
  width: 40px;
  height: 40px;
  top: 50%;
  left: 50%;
  animation: float2 16s ease-in-out infinite;
}

.shape-6 {
  width: 90px;
  height: 90px;
  top: 70%;
  right: 30%;
  animation: float3 24s ease-in-out infinite reverse;
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.3;
  }

  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-10px) translateX(-15px) rotate(180deg);
    opacity: 0.2;
  }

  75% {
    transform: translateY(15px) translateX(5px) rotate(270deg);
    opacity: 0.4;
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.2;
  }

  33% {
    transform: translateY(15px) translateX(-10px) scale(1.1);
    opacity: 0.4;
  }

  66% {
    transform: translateY(-25px) translateX(20px) scale(0.9);
    opacity: 0.3;
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.25;
  }

  50% {
    transform: translateY(-30px) rotate(180deg) scale(1.2);
    opacity: 0.4;
  }
}

/* Subtle grid pattern */
.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

/* Tech-style animated lines */
.tech-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.line {
  position: absolute;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(59, 130, 246, 0.6) 50%,
      transparent 100%);
  height: 1px;
}

.line-1 {
  top: 25%;
  width: 200px;
  left: -200px;
  animation: lineMove1 8s ease-in-out infinite;
}

.line-2 {
  top: 60%;
  width: 150px;
  right: -150px;
  animation: lineMove2 10s ease-in-out infinite 2s;
}

.line-3 {
  top: 80%;
  width: 180px;
  left: -180px;
  animation: lineMove1 12s ease-in-out infinite 4s;
}

@keyframes lineMove1 {
  0% {
    left: -200px;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  50% {
    left: 50%;
    opacity: 0.8;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes lineMove2 {
  0% {
    right: -150px;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  50% {
    right: 50%;
    opacity: 0.8;
  }

  90% {
    opacity: 1;
  }

  100% {
    right: 100%;
    opacity: 0;
  }
}

/* Reduced motion support */
.modern-bg-container.reduced-motion .gradient-bg,
.modern-bg-container.reduced-motion .shape,
.modern-bg-container.reduced-motion .grid-pattern,
.modern-bg-container.reduced-motion .line {
  animation: none !important;
}

.modern-bg-container.reduced-motion .gradient-bg {
  background: rgba(59, 130, 246, 0.02);
}

.modern-bg-container.reduced-motion .shape {
  opacity: 0.1;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .shape {
    transform: scale(0.7);
  }

  .shape-1,
  .shape-4 {
    display: none;
    /* Hide larger shapes on mobile */
  }

  .grid-pattern {
    background-size: 30px 30px;
  }

  .line {
    height: 0.5px;
  }
}

/* Performance optimizations */
.modern-bg-container * {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .gradient-bg {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.05) 0%,
        rgba(147, 51, 234, 0.05) 25%,
        rgba(16, 185, 129, 0.05) 50%,
        rgba(245, 158, 11, 0.05) 75%,
        rgba(239, 68, 68, 0.05) 100%);
  }

  .shape {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(147, 51, 234, 0.15));
  }

  .grid-pattern {
    background-image:
      linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  }
}

/* ===== IN
TERACTIVE ENHANCEMENTS ===== */

/* Subtle pulse animation for buttons and interactive elements */
.cta-btn,
.bizbit-wa {
  position: relative;
  overflow: hidden;
}

.cta-btn::before,
.bizbit-wa::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.cta-btn:hover::before,
.bizbit-wa:hover::before {
  width: 300px;
  height: 300px;
}

/* Enhanced sidebar hover effects */
.sidebar .nav-links a,
.sidebar .dropdown-btn {
  position: relative;
  overflow: hidden;
}

.sidebar .nav-links a::before,
.sidebar .dropdown-btn::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.sidebar .nav-links a:hover::before,
.sidebar .dropdown-btn:hover::before {
  left: 100%;
}

/* Smooth page transitions */
.main-content {
  animation: pageSlideIn 0.5s ease-out;
}

@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced card hover effects */
.hover-lift {
  position: relative;
  overflow: hidden;
}

.hover-lift::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  transition: left 0.8s ease;
}

.hover-lift:hover::after {
  left: 100%;
}

/* Glowing effect for active elements */
.glow-effect {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  animation: gentleGlow 2s ease-in-out infinite alternate;
}

@keyframes gentleGlow {
  from {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
  }

  to {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
  }
}

/* Disable animations for reduced motion */
@media (prefers-reduced-motion: reduce) {

  .main-content,
  .cta-btn::before,
  .bizbit-wa::before,
  .sidebar .nav-links a::before,
  .sidebar .dropdown-btn::before,
  .hover-lift::after {
    animation: none !important;
    transition: none !important;
  }

  .glow-effect {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    animation: none !important;
  }
}

/* ==
=== CLEANUP: HIDE OLD PARTICLES SYSTEMS ===== */
#particles-js,
#tsparticles,
#simple-particles,
#particles-fallback {
  display: none !important;
}

/* Ensure modern background is properly positioned */
#modern-background {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

/* =====
 SIMPLE GUARANTEED BACKGROUND ANIMATION ===== */

/* VERCEL-COMPATIBLE: This will work even if React/JS fails to load */
body::before {
  content: '' !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -10 !important;
  pointer-events: none !important;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.15) 0%,
      rgba(147, 51, 234, 0.15) 25%,
      rgba(16, 185, 129, 0.15) 50%,
      rgba(245, 158, 11, 0.15) 75%,
      rgba(239, 68, 68, 0.15) 100%) !important;
  background-size: 400% 400% !important;
  animation: simpleGradient 20s ease infinite !important;
}

@keyframes simpleGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Simple floating dots */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 40% 60%, rgba(16, 185, 129, 0.15) 1.5px, transparent 1.5px);
  background-size: 200px 200px, 150px 150px, 100px 100px;
  animation: floatingDots 30s linear infinite;
}

@keyframes floatingDots {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-50px, -50px);
  }
}

/* Disable for reduced motion */
@media (prefers-reduced-motion: reduce) {

  body::before,
  body::after {
    animation: none !important;
  }

  body::before {
    background: rgba(59, 130, 246, 0.02);
  }

  body::after {
    display: none;
  }
}

/* ===== ENHANCED WHATSAPP BUTTON ===== */
/* Ensure WhatsApp button is always visible and floating */
.bizbit-wa {
  position: fixed !important;
  right: 1.5rem !important;
  bottom: 1.5rem !important;
  z-index: 99999 !important;
  /* Add subtle floating animation */
  animation: whatsappFloat 3s ease-in-out infinite;
}

@keyframes whatsappFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Disable WhatsApp animation for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bizbit-wa {
    animation: none !important;
  }
}

/* ===== DEBUG VISIBILITY TEST ===== */
/* Temporary high-visibility test animation */
.debug-animation-test {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(45deg,
      rgba(255, 0, 0, 0.1) 0%,
      rgba(0, 255, 0, 0.1) 50%,
      rgba(0, 0, 255, 0.1) 100%);
  background-size: 200% 200%;
  animation: debugTest 5s ease infinite;
}

@keyframes debugTest {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* 
===== SEARCH BAR COMPONENT STYLES ===== */

/* Mobile search toggle button */
.search-bar-mobile {
  position: relative;
  z-index: 1001;
}

.search-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.search-toggle-btn svg {
  flex-shrink: 0;
}

/* Main search container */
.search-bar-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  min-width: 300px;
  z-index: 1000;
  /* Prevent horizontal movement */
  flex-shrink: 0;
}

.search-bar-container.mobile-expanded {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: none;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem;
  z-index: 9999;
}

/* Search input wrapper */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
  color: #6b7280;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: #1f2937;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-clear-btn,
.search-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.search-clear-btn svg,
.search-close-btn svg {
  flex-shrink: 0;
}

.search-clear-btn:hover,
.search-close-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Search results dropdown - AGGRESSIVE BACKGROUND FIX */
.search-results {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: white !important;
  background-color: white !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
  border: 2px solid #e5e7eb !important;
  margin-top: 0.5rem !important;
  max-height: 400px !important;
  overflow: hidden !important;
  z-index: 9999 !important;
  width: 100% !important;
  min-width: 300px !important;
}

.mobile-expanded .search-results {
  position: static;
  margin-top: 1rem;
  max-height: 60vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
}

/* Loading state */
.search-loading {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem !important;
  color: #6b7280 !important;
  gap: 0.75rem !important;
  background: white !important;
  background-color: white !important;
  backdrop-filter: blur(5px) !important;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Results header */
.search-results-header {
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  background-color: #f9fafb !important;
  backdrop-filter: blur(5px) !important;
}

.results-count {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

/* Results list */
.search-results-list {
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  display: block !important;
  padding: 1rem !important;
  border-bottom: 1px solid rgba(243, 244, 246, 0.8) !important;
  text-decoration: none !important;
  color: inherit !important;
  background: white !important;
  background-color: white !important;
  transition: all 0.2s ease !important;
}

.search-result-item:hover {
  background: #f9fafb !important;
  background-color: #f9fafb !important;
  transform: translateX(2px) !important;
}

.search-result-item:last-child {
  border-bottom: none;
}

.result-content {
  width: 100%;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25rem;
  gap: 1rem;
}

.result-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.4;
}

.result-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3b82f6;
  white-space: nowrap;
  flex-shrink: 0;
}

.result-category {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.25rem 0;
  font-weight: 500;
}

.result-summary {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

/* Results footer */
.search-results-footer {
  padding: 0.75rem 1rem !important;
  border-top: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  background-color: #f9fafb !important;
  backdrop-filter: blur(5px) !important;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.view-all-link:hover {
  color: #2563eb;
}

/* No results state */
.search-no-results {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 2rem !important;
  text-align: center !important;
  background: white !important;
  background-color: white !important;
  backdrop-filter: blur(5px) !important;
}

.no-results-text {
  font-size: 1rem;
  color: #374151;
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.no-results-suggestion {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

.browse-all-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.browse-all-link:hover {
  background: #2563eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-bar-container:not(.mobile-expanded) {
    display: none;
  }

  .search-bar-mobile {
    display: block;
  }

  .mobile-expanded .search-input-wrapper {
    background: rgba(255, 255, 255, 0.98);
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .result-price {
    align-self: flex-end;
  }
}

@media (min-width: 769px) {
  .search-bar-mobile {
    display: none;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

  .search-input-wrapper,
  .search-result-item,
  .search-toggle-btn,
  .loading-spinner {
    transition: none;
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .search-input-wrapper {
    border: 2px solid #000;
    background: #fff;
  }

  .search-results {
    border: 2px solid #000;
  }

  .search-result-item:hover {
    background: #f0f0f0;
  }
}

/* Focus visible for keyboard navigation */
.search-result-item:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

.search-toggle-btn:focus-visible,
.search-clear-btn:focus-visible,
.search-close-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/*
 Search error state */
.search-error {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 2rem !important;
  text-align: center !important;
  background: white !important;
  background-color: white !important;
  backdrop-filter: blur(5px) !important;
}

.error-text {
  font-size: 1rem;
  color: #dc2626;
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.error-suggestion {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

/* Search configuration indicator (for development) */
.search-config-indicator {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.search-config-indicator.local {
  background: #10b981;
}

.search-config-indicator.server {
  background: #3b82f6;
}

.search-config-indicator.ai {
  background: #8b5cf6;
}

/* Enhanced loading states for different search types */
.search-loading.ai-search {
  background: linear-gradient(90deg, #f3e8ff, #e0e7ff, #f3e8ff);
  background-size: 200% 100%;
  animation: aiSearchGlow 2s ease-in-out infinite;
}

@keyframes aiSearchGlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.search-loading.server-search {
  border-left: 3px solid #3b82f6;
}

/* Keyboard navigation improvements */
.search-result-item.keyboard-focused {
  background: #eff6ff;
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

/* Search analytics (for future implementation) */
.search-analytics {
  position: absolute;
  bottom: -30px;
  right: 0;
  font-size: 10px;
  color: #9ca3af;
  opacity: 0.7;
}

/* Performance optimizations */
.search-results-list {
  contain: layout style;
  will-change: scroll-position;
}

.search-result-item {
  contain: layout;
}

/* Future AI search enhancements */
.ai-search-suggestion {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.ai-search-confidence {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

/* Enhance
d search results visibility */
.search-results::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255, 255, 255, 0.98);
  z-index: 1002;
}

/* Enhanced contrast for better readability - moved to main definition */

/* Enhanced contrast for better readability */
.search-result-item {
  border-bottom: 1px solid rgba(243, 244, 246, 0.8);
}

.search-result-item:last-child {
  border-bottom: none;
}

/* AGGRESSIVE TEXT CONTRAST - MAXIMUM VISIBILITY */
.result-title,
h4.result-title,
.search-result-item .result-title,
.search-result-item h4.result-title {
  color: #000000 !important;
  font-weight: 600 !important;
}

.result-category,
p.result-category,
.search-result-item .result-category,
.search-result-item p.result-category {
  color: #4b5563 !important;
  font-weight: 500 !important;
}

.result-summary,
p.result-summary,
.search-result-item .result-summary,
.search-result-item p.result-summary {
  color: #1f2937 !important;
  font-weight: 400 !important;
}

.result-price,
span.result-price,
.search-result-item .result-price,
.search-result-item span.result-price {
  color: #1d4ed8 !important;
  font-weight: 600 !important;
}

/* Ensure proper visibility on all backgrounds */
@media (prefers-color-scheme: dark) {
  .search-results {
    background: rgba(17, 24, 39, 0.98) !important;
    border-color: rgba(75, 85, 99, 0.8);
  }

  .search-results-header,
  .search-results-footer,
  .search-loading,
  .search-error,
  .search-no-results {
    background: rgba(31, 41, 55, 0.98) !important;
  }

  .search-result-item {
    background: rgba(17, 24, 39, 0.95) !important;
    color: #f9fafb;
  }

  .search-result-item:hover {
    background: rgba(55, 65, 81, 0.98) !important;
  }

  .result-title {
    color: #f9fafb !important;
  }

  .result-category {
    color: #9ca3af !important;
  }

  .result-summary {
    color: #d1d5db !important;
  }
}

/*
 ===== SEARCH BAR STABILITY FIXES ===== */

/* Prevent horizontal movement and layout shifts */
.search-bar-container {
  contain: layout;
  will-change: auto;
}

/* Ensure search results don't affect layout */
.search-results {
  contain: layout style;
  will-change: opacity, transform;
}

/* Prevent search input from causing shifts */
.search-input-wrapper {
  contain: layout;
  box-sizing: border-box;
}

/* Force solid backgrounds with high specificity */
.search-results,
.search-results * {
  box-sizing: border-box;
}

.search-result-item {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(2px);
}

.search-result-item:hover {
  background-color: rgba(249, 250, 251, 0.98) !important;
}

/* Ensure all search states have backgrounds */
.search-loading,
.search-error,
.search-no-results {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(5px);
}

.search-results-header,
.search-results-footer {
  background: rgba(249, 250, 251, 0.98) !important;
  backdrop-filter: blur(5px);
}

/* Mobile stability */
@media (max-width: 768px) {
  .search-bar-container.mobile-expanded {
    contain: strict;
  }
}

/* High contrast mode - ensure visibility */
@media (prefers-contrast: high) {
  .search-results {
    background: white !important;
    border: 2px solid black !important;
  }

  .search-result-item {
    background: white !important;
    border-bottom: 1px solid black !important;
  }

  .search-result-item:hover {
    background: #f0f0f0 !important;
  }
}

/* ==
=== ULTIMATE SEARCH BACKGROUND FIX - HIGHEST SPECIFICITY ===== */

/* Force solid backgrounds with maximum specificity */
div.search-results,
.search-bar-container .search-results,
.search-bar-container div.search-results {
  background: white !important;
  background-color: white !important;
}

div.search-result-item,
.search-results .search-result-item,
.search-results div.search-result-item,
a.search-result-item {
  background: white !important;
  background-color: white !important;
}

div.search-result-item:hover,
.search-results .search-result-item:hover,
.search-results div.search-result-item:hover,
a.search-result-item:hover {
  background: #f9fafb !important;
  background-color: #f9fafb !important;
}

div.search-loading,
.search-results .search-loading,
div.search-error,
.search-results .search-error,
div.search-no-results,
.search-results .search-no-results {
  background: white !important;
  background-color: white !important;
}

div.search-results-header,
.search-results .search-results-header,
div.search-results-footer,
.search-results .search-results-footer {
  background: #f9fafb !important;
  background-color: #f9fafb !important;
}

/* Inline style override for React components */
.search-results[style*="background"] {
  background: white !important;
}

.search-result-item[style*="background"] {
  background: white !important;
}

/* CSS custom property override */
.search-results {
  --bg-color: white;
  background: var(--bg-color) !important;
}

.search-result-item {
  --bg-color: white;
  background: var(--bg-color) !important;
}

/* Tailwind class override */
.search-results.bg-transparent,
.search-results.bg-white,
.search-results.bg-gray-50 {
  background: white !important;
}

.search-result-item.bg-transparent,
.search-result-item.bg-white,
.search-result-item.bg-gray-50 {
  background: white !important;
}

/* ====
= ULTIMATE TEXT VISIBILITY FIX ===== */

/* Force maximum text contrast on white backgrounds */
.search-results * {
  color: inherit !important;
}

.search-result-item,
.search-result-item * {
  color: #000000 !important;
}

/* Specific text element overrides */
.search-result-item .result-title,
.search-result-item h4,
.search-result-item .result-title * {
  color: #000000 !important;
  font-weight: 600 !important;
}

.search-result-item .result-category,
.search-result-item .result-category * {
  color: #374151 !important;
  font-weight: 500 !important;
}

.search-result-item .result-summary,
.search-result-item .result-summary * {
  color: #1f2937 !important;
  font-weight: 400 !important;
}

.search-result-item .result-price,
.search-result-item .result-price * {
  color: #1d4ed8 !important;
  font-weight: 600 !important;
}

/* Override any inherited colors */
.search-result-item a,
.search-result-item span,
.search-result-item p,
.search-result-item h1,
.search-result-item h2,
.search-result-item h3,
.search-result-item h4,
.search-result-item h5,
.search-result-item h6,
.search-result-item div {
  color: inherit !important;
}

/* Ensure no transparent or light text */
.search-result-item [style*="color: white"],
.search-result-item [style*="color: transparent"],
.search-result-item [style*="color: rgba(255"],
.search-result-item .text-white,
.search-result-item .text-transparent {
  color: #000000 !important;
}

/* Loading, error, and no-results text visibility */
.search-loading,
.search-loading * {
  color: #374151 !important;
}

.search-error,
.search-error * {
  color: #374151 !important;
}

.search-no-results,
.search-no-results * {
  color: #374151 !important;
}

.search-no-results .no-results-text {
  color: #000000 !important;
  font-weight: 600 !important;
}

.search-no-results .no-results-suggestion {
  color: #4b5563 !important;
}

/* Header and footer text */
.search-results-header,
.search-results-header * {
  color: #374151 !important;
}

.search-results-footer,
.search-results-footer * {
  color: #374151 !important;
}

.view-all-link {
  color: #1d4ed8 !important;
}

/* Results count text */
.results-count {
  color: #6b7280 !important;
  font-weight: 500 !important;
}/* 
===== HOMEPAGE PARTICLE ANIMATIONS ===== */

/* Main particle container */
.homepage-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Enhanced particles container */
.enhanced-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Particle base styles */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) translateX(-15px) rotate(180deg);
  }
  75% {
    transform: translateY(15px) translateX(5px) rotate(270deg);
  }
}

/* Drift animation */
@keyframes drift {
  0% {
    transform: translateX(0px) translateY(0px);
  }
  33% {
    transform: translateX(30px) translateY(-30px);
  }
  66% {
    transform: translateX(-20px) translateY(20px);
  }
  100% {
    transform: translateX(0px) translateY(0px);
  }
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Orbit animation */
@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(50px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(50px) rotate(-360deg);
  }
}

/* Twinkle animation */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Spiral animation */
@keyframes spiral {
  0% {
    transform: rotate(0deg) translateX(0px) scale(1);
  }
  50% {
    transform: rotate(180deg) translateX(30px) scale(1.1);
  }
  100% {
    transform: rotate(360deg) translateX(0px) scale(1);
  }
}

/* Wave animation */
@keyframes wave {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-15px) translateX(15px);
  }
  50% {
    transform: translateY(0px) translateX(30px);
  }
  75% {
    transform: translateY(15px) translateX(15px);
  }
}

/* Particle variants */
.particle-float {
  animation: float 15s linear infinite;
}

.particle-drift {
  animation: drift 20s ease-in-out infinite;
}

.particle-pulse {
  animation: pulse 3s ease-in-out infinite;
}

.particle-orbit {
  animation: orbit 25s linear infinite;
}

.particle-twinkle {
  animation: twinkle 2s ease-in-out infinite;
}

.particle-spiral {
  animation: spiral 18s ease-in-out infinite;
}

.particle-wave {
  animation: wave 12s ease-in-out infinite;
}

/* Section-specific particle styles */
.hero-particles {
  z-index: 0;
}

.hero-particles .particle {
  filter: blur(0.5px);
}

.services-particles {
  z-index: 0;
  opacity: 0.6;
}

.packages-particles {
  z-index: 0;
  opacity: 0.4;
}

/* Interactive particle effects */
.particle:hover {
  transform: scale(1.5) !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
}

/* Particle trails */
.particle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0.1;
  z-index: -1;
}

/* Performance optimizations */
.particle,
.particle::after {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .particle {
    transform: scale(0.7);
  }
  
  .enhanced-particles {
    opacity: 0.7;
  }
}

@media (max-width: 480px) {
  .particle {
    transform: scale(0.5);
  }
  
  .enhanced-particles {
    opacity: 0.5;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .homepage-particles,
  .enhanced-particles,
  .particle {
    display: none !important;
  }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .particle {
    filter: brightness(1.2);
  }
}

/* High performance mode */
@media (max-resolution: 1dppx) {
  .particle::after {
    display: none;
  }
}

/* Particle color variants */
.particle-blue {
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
}

.particle-purple {
  background: linear-gradient(45deg, #8b5cf6, #7c3aed);
}

.particle-green {
  background: linear-gradient(45deg, #10b981, #059669);
}

.particle-amber {
  background: linear-gradient(45deg, #f59e0b, #d97706);
}

.particle-red {
  background: linear-gradient(45deg, #ef4444, #dc2626);
}

/* Particle size variants */
.particle-small {
  width: 2px !important;
  height: 2px !important;
}

.particle-medium {
  width: 4px !important;
  height: 4px !important;
}

.particle-large {
  width: 6px !important;
  height: 6px !important;
}/* 
Search Bar Styles */
.search-bar-container {
  position: relative;
  width: 100%;
  max-width: 300px;
}

/* Mobile Search Bar - Left positioned */
@media (max-width: 767px) {
  .search-bar-container {
    max-width: 280px;
  }
  
  .search-bar-mobile {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
  }
  
  .search-toggle-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
  }
  
  .search-toggle-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
  }
  
  .mobile-expanded {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 50;
    max-width: calc(100vw - 2rem);
  }
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 1);
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
  color: #6b7280;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #1f2937;
  font-size: 0.875rem;
  placeholder-color: #9ca3af;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-clear-btn,
.search-close-btn {
  background: none;
  border: none;
  color: #6b7280;
  padding: 0.25rem;
  margin-left: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-clear-btn:hover,
.search-close-btn:hover {
  color: #374151;
  background: rgba(0, 0, 0, 0.05);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  z-index: 50;
}

.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #6b7280;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.75rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.search-error,
.search-no-results {
  padding: 2rem;
  text-align: center;
}

.search-results-header,
.search-results-footer {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.search-results-footer {
  border-bottom: none;
  border-top: 1px solid #f3f4f6;
}

.search-results-list {
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.search-result-item:hover {
  background-color: #f9fafb;
}

.search-result-item:last-child {
  border-bottom: none;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.result-title {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  margin: 0;
  flex: 1;
  margin-right: 1rem;
}

.result-price {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.result-category {
  font-size: 0.75rem;
  margin: 0 0 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-summary {
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

.results-count {
  font-size: 0.75rem;
  font-weight: 500;
}

.view-all-link,
.browse-all-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.view-all-link:hover,
.browse-all-link:hover {
  text-decoration: underline;
}

/* Particle Animation Optimizations */
.homepage-particles {
  will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .homepage-particles,
  .animate-fade-in,
  .loading-spinner {
    animation: none !important;
  }
  
  .search-input-wrapper,
  .search-toggle-btn,
  .search-result-item {
    transition: none !important;
  }
}

/* Performance optimizations */
.search-bar-container * {
  box-sizing: border-box;
}

/* Ensure proper stacking context */
.hero {
  position: relative;
  z-index: 1;
}

.hero .overlay {
  position: relative;
  z-index: 2;
}