/* TechFlow Landing Page - Custom Styles */

/* Custom Properties */
:root {
  --primary-color: #4f46e5;
  --secondary-color: #9333ea;
  --accent-color: #fbbf24;
  --text-dark: #000000;
  --text-light: #374151;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;

  /* Light Mode Colors */
  --bg-primary-light: #ffffff;
  --bg-secondary-light: #f8fafc;
  --text-primary-light: #1f2937;
  --text-secondary-light: #6b7280;
  --border-light: #e5e7eb;
  --shadow-light: rgba(0, 0, 0, 0.1);

  /* Dark Mode Colors */
  --bg-primary-dark: #1f2937;
  --bg-secondary-dark: #111827;
  --text-primary-dark: #f9fafb;
  --text-secondary-dark: #d1d5db;
  --border-dark: #374151;
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(2rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Gradient Backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-alt {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-bg-dark {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Hero Pattern */
.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Custom Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  border: 2px solid var(--bg-white);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--bg-white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Card Hover Effects */
.feature-card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (min-width: 769px) {
  .hero-title {
    font-size: 4rem;
    line-height: 1.1;
  }

  .section-title {
    font-size: 3rem;
  }
}

/* Focus States for Accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Enhanced Text Visibility */
.text-gray-900 {
  color: #000000 !important;
  font-weight: 600;
}

.text-gray-800 {
  color: #1f2937 !important;
  font-weight: 500;
}

.text-gray-700 {
  color: #1f2937 !important;
  font-weight: 500;
}

.text-gray-600 {
  color: #374151 !important;
  font-weight: 500;
}

.text-gray-300 {
  color: #6b7280 !important;
  font-weight: 500;
}

/* Enhanced Paragraph Text */
p {
  color: #1f2937 !important;
  font-weight: 500;
  line-height: 1.6;
}

/* Enhanced Card Text */
.feature-card p,
.testimonial-card p {
  color: #1f2937 !important;
  font-weight: 500;
  line-height: 1.7;
}

/* Enhanced Button Text */
.btn-primary {
  color: #000000 !important;
  font-weight: 600;
}

.btn-secondary {
  color: #ffffff !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Agendar Demo Button Special Effect */
.btn-secondary:active {
  background-color: #4c1d95 !important;
  border-color: #4c1d95 !important;
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(76, 29, 149, 0.4);
}

/* Enhanced Agendar Demo Button */
.btn-secondary[data-clicked="true"] {
  background-color: #4c1d95 !important;
  border-color: #4c1d95 !important;
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(76, 29, 149, 0.4);
  transition: all 0.3s ease;
}

/* Enhanced Headers */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #000000 !important;
  font-weight: 700;
}

/* Enhanced Links */
a {
  color: #1f2937 !important;
  font-weight: 500;
}

a:hover {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* Custom Selection */
::selection {
  background: var(--primary-color);
  color: white;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --text-dark: #000000;
    --text-light: #333333;
  }
}

/* Enhanced Contrast for Better Visibility */
body {
  color: #1f2937 !important;
}

.text-gray-900,
.text-gray-800,
.text-gray-700,
.text-gray-600 {
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Enhanced Background Contrast */
.bg-gray-50 {
  background-color: #f8fafc !important;
}

.bg-white {
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Enhanced System Status Box */
.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Enhanced Status Text */
.text-white.font-semibold {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Enhanced Black Status Text */
.text-black.font-bold {
  color: #000000 !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3px;
}

/* Enhanced Status Dots */
.w-3.h-3.animate-pulse {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* System Status Container */
.bg-white\/20.backdrop-blur-sm {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Enhanced White Background for Black Text */
.bg-white\/90.backdrop-blur-sm {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Status Items Spacing */
.space-y-4>div {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.space-y-4>div:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

/* Dark Mode Styles */
[data-theme="dark"] {
  --bg-primary: var(--bg-primary-dark);
  --bg-secondary: var(--bg-secondary-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --border-color: var(--border-dark);
  --shadow-color: var(--shadow-dark);
}

/* Light Mode Styles */
[data-theme="light"] {
  --bg-primary: var(--bg-primary-light);
  --bg-secondary: var(--bg-secondary-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --border-color: var(--border-light);
  --shadow-color: var(--shadow-light);
}

/* Dark Mode Specific Styles */
[data-theme="dark"] body {
  background-color: var(--bg-primary-dark) !important;
  color: var(--text-primary-dark) !important;
}

[data-theme="dark"] header {
  background-color: var(--bg-primary-dark) !important;
  border-bottom: 1px solid var(--border-dark);
}

[data-theme="dark"] .bg-white {
  background-color: var(--bg-primary-dark) !important;
  border: 1px solid var(--border-dark);
}

[data-theme="dark"] .bg-gray-50 {
  background-color: var(--bg-secondary-dark) !important;
}

[data-theme="dark"] .text-gray-900,
[data-theme="dark"] .text-gray-800,
[data-theme="dark"] .text-gray-700,
[data-theme="dark"] .text-gray-600 {
  color: var(--text-primary-dark) !important;
}

[data-theme="dark"] .text-gray-300 {
  color: var(--text-secondary-dark) !important;
}

[data-theme="dark"] .feature-card {
  background-color: var(--bg-secondary-dark) !important;
  border: 1px solid var(--border-dark);
}

[data-theme="dark"] .testimonial-card {
  background-color: var(--bg-primary-dark) !important;
  border: 1px solid var(--border-dark);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: var(--text-primary-dark) !important;
}

[data-theme="dark"] .btn-secondary {
  border-color: var(--text-primary-dark);
  color: var(--text-primary-dark) !important;
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: var(--text-primary-dark);
  color: var(--bg-primary-dark) !important;
}

[data-theme="dark"] footer {
  background-color: var(--bg-secondary-dark) !important;
}

[data-theme="dark"] .text-indigo-600 {
  color: #818cf8 !important;
}

[data-theme="dark"] .text-indigo-400 {
  color: #a78bfa !important;
}

[data-theme="dark"] .bg-indigo-100 {
  background-color: rgba(99, 102, 241, 0.2) !important;
}

[data-theme="dark"] .bg-green-100 {
  background-color: rgba(34, 197, 94, 0.2) !important;
}

[data-theme="dark"] .bg-purple-100 {
  background-color: rgba(147, 51, 234, 0.2) !important;
}

[data-theme="dark"] .bg-blue-100 {
  background-color: rgba(59, 130, 246, 0.2) !important;
}

[data-theme="dark"] .bg-yellow-100 {
  background-color: rgba(234, 179, 8, 0.2) !important;
}

[data-theme="dark"] .bg-red-100 {
  background-color: rgba(239, 68, 68, 0.2) !important;
}

[data-theme="dark"] .shadow-lg {
  box-shadow: 0 10px 15px -3px var(--shadow-dark), 0 4px 6px -2px var(--shadow-dark) !important;
}

[data-theme="dark"] .shadow-sm {
  box-shadow: 0 1px 2px 0 var(--shadow-dark) !important;
}

[data-theme="dark"] .gradient-bg {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

[data-theme="dark"] .text-white {
  color: var(--text-primary-dark) !important;
}

[data-theme="dark"] .text-gray-100 {
  color: var(--text-secondary-dark) !important;
}

[data-theme="dark"] .text-yellow-300 {
  color: #fbbf24 !important;
}

[data-theme="dark"] .text-yellow-400 {
  color: #f59e0b !important;
}

[data-theme="dark"] .bg-white\/90 {
  background-color: rgba(30, 41, 59, 0.9) !important;
  border-color: var(--border-dark) !important;
}

[data-theme="dark"] .text-black {
  color: var(--text-primary-dark) !important;
}

[data-theme="dark"] .border-white\/50 {
  border-color: var(--border-dark) !important;
}

[data-theme="dark"] .border-white\/30 {
  border-color: var(--border-dark) !important;
}

[data-theme="dark"] .bg-white\/20 {
  background-color: rgba(30, 41, 59, 0.25) !important;
  border-color: var(--border-dark) !important;
}

[data-theme="dark"] .bg-white\/90.backdrop-blur-sm {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.85) 100%) !important;
  border-color: var(--border-dark) !important;
}

[data-theme="dark"] .text-black.font-bold {
  color: var(--text-primary-dark) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .space-y-4>div {
  background: rgba(51, 65, 85, 0.1);
  border: 1px solid var(--border-dark);
}

[data-theme="dark"] .space-y-4>div:hover {
  background: rgba(51, 65, 85, 0.2);
}

[data-theme="dark"] .w-3.h-3.animate-pulse {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Theme Toggle Button Styles */
#theme-toggle {
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  background-color: rgba(99, 102, 241, 0.1);
  transform: scale(1.1);
}

[data-theme="dark"] #theme-toggle {
  color: var(--text-primary-dark);
}

[data-theme="dark"] #theme-toggle:hover {
  color: #818cf8;
  background-color: rgba(129, 140, 248, 0.1);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}