/* AI Solutions Portfolio - Enhanced Main CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@300;400;500;600&display=swap');

:root {
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-ai: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  --purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  /* Chat specific */
  --chat-bg: #ffffff;
  --chat-text: #111827;
  --chat-accent: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --chat-pill-bg: #2563eb;
  --chat-toggle-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
}

/* Dark mode color scheme */
.dark {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --border-color: #374151;
  /* Chat dark overrides */
  --chat-bg: #0b1220;
  --chat-text: #e6eef8;
  --chat-accent: linear-gradient(135deg, #60a5fa 0%, #8b5cf6 100%);
  --chat-pill-bg: #2563eb;
  --chat-toggle-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --border-color: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Enhanced Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {

  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }

  70% {
    transform: translate3d(0, -15px, 0);
  }

  90% {
    transform: translate3d(0, -4px, 0);
  }
}

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

  to {
    transform: rotate(360deg);
  }
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  }

  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% -200%;
  }

  100% {
    background-position: 200% 200%;
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: rgba(255, 255, 255, 0.75);
  }
}

@keyframes scale-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slide-up {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Enhanced Utility Classes */
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

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

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

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

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

.animate-spin-slow {
  animation: rotate 3s linear infinite;
}

.animate-gradient {
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
}

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

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-shimmer {
  animation: shimmer 2s infinite;
  background-size: 200% 200%;
}

.animate-typewriter {
  animation: typewriter 4s steps(40) 1s 1 normal both;
}

.animate-blink {
  animation: blink 1s infinite;
}

.animate-scale-in {
  animation: scale-in 0.5s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.5s ease-out;
}

/* Enhanced Components */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  color: white;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) scale(1.05);
}

.card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-8px) scale(1.02);
}

.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  color: white;
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.25);
}

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.navbar-dark {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #fefbff 50%, #f3e8ff 100%);
  position: relative;
  overflow: hidden;
}

.hero-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%238b5cf6" fill-opacity="0.1"><circle cx="20" cy="20" r="2"/><circle cx="40" cy="40" r="2"/></g></svg>');
  animation: floating 20s linear infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  position: relative;
}

.hero-title-animated {
  overflow: hidden;
  border-right: 3px solid;
  white-space: nowrap;
  animation: typewriter 4s steps(40) 1s 1 normal both, blink 1s infinite;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.feature-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.feature-icon:hover {
  transform: scale(1.1) rotate(10deg);
  animation: glow 2s infinite;
}

.project-tag {
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin: 0.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-tag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.footer {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
}

/* Enhanced Form Styles */
.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  position: relative;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.form-input-dark,
.form-textarea-dark {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.form-input-dark::placeholder,
.form-textarea-dark::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  position: relative;
}

.form-label-dark {
  color: #e5e7eb;
}

/* Enhanced Demo Cards */
.demo-card {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.demo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.demo-card:hover::before {
  left: 100%;
}

.demo-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.demo-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.demo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background: inherit;
  opacity: 0;
  transform: scale(1.5);
  transition: all 0.3s ease;
}

.demo-card:hover .demo-icon::after {
  opacity: 0.3;
  transform: scale(1);
}

.demo-icon.red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.demo-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.demo-icon.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.demo-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Enhanced Loading Spinner */
.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top: 3px solid #8b5cf6;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
  position: relative;
}

.spinner::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top: 2px solid #3b82f6;
  animation: rotate 1.5s linear infinite reverse;
}

/* Glass Morphism Effects */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  border-radius: 10px;
  border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
  background: #1e293b;
  border-color: #1e293b;
}

.dark ::-webkit-scrollbar-thumb {
  border-color: #1e293b;
}

/* Enhanced Selection */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}

/* Enhanced Focus States */
*:focus {
  outline: 2px solid rgba(139, 92, 246, 0.5);
  outline-offset: 2px;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .card {
    border-radius: 1rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .feature-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

/* Enhanced Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0f172a;
    color: #e2e8f0;
  }

  .card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
}

/* Utility Classes for Enhanced Interactions */
.hover-lift:hover {
  transform: translateY(-4px);
}

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

.hover-rotate:hover {
  transform: rotate(5deg);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.hover-shimmer:hover {
  animation: shimmer 1s ease-in-out;
}

/* Advanced Grid Layouts */
.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.grid-auto-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Enhanced Typography */
.text-gradient {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* Performance Optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Enhanced Theme Transition System */
.theme-transition {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Dark Mode Enhancements */
.dark .hero {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
}

.dark .hero-title {
  color: #f9fafb;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark .hero-subtitle {
  color: #d1d5db;
}

.dark .section-title {
  color: #f9fafb;
  background: linear-gradient(135deg, #f9fafb, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .section-subtitle {
  color: #9ca3af;
}

.dark .feature-card {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.3);
  backdrop-filter: blur(10px);
}

.dark .feature-card:hover {
  background: rgba(31, 41, 55, 0.8);
  border-color: #3b82f6;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .floating-particle {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Theme-aware text colors */
.dark .text-gray-900 {
  color: #f9fafb !important;
}

.dark .text-gray-800 {
  color: #f3f4f6 !important;
}

.dark .text-gray-700 {
  color: #e5e7eb !important;
}

.dark .text-gray-600 {
  color: #d1d5db !important;
}

.dark .text-gray-500 {
  color: #9ca3af !important;
}

.dark .text-gray-400 {
  color: #6b7280 !important;
}

/* Theme-aware background colors */
.dark .bg-white {
  background-color: #1f2937 !important;
}

.dark .bg-gray-50 {
  background-color: #111827 !important;
}

.dark .bg-gray-100 {
  background-color: #1f2937 !important;
}

.dark .bg-gray-200 {
  background-color: #374151 !important;
}

/* Theme-aware border colors */
.dark .border-gray-200 {
  border-color: #374151 !important;
}

.dark .border-gray-300 {
  border-color: #4b5563 !important;
}

/* Enhanced gradient effects for dark mode */
.dark .text-gradient {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.dark .btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Enhanced mobile responsiveness for dark mode */
@media (max-width: 768px) {
  .dark .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  }

  .dark .feature-card {
    background: rgba(17, 24, 39, 0.8);
  }
}

/* Smooth animation for theme changes */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Override any conflicting transitions */
.no-transition {
  transition: none !important;
}

/* Page-specific dark mode adjustments */
.dark .about-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
}

.dark .contact-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
}

/* Custom scrollbar for dark mode */
.dark::-webkit-scrollbar {
  width: 8px;
}

.dark::-webkit-scrollbar-track {
  background: #1f2937;
}

.dark::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}

.dark::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Wave background fill for dark/light mode */
.wave-bg-fill {
  fill: #ffffff;
  transition: fill 0.3s ease;
}

.dark .wave-bg-fill {
  fill: #1f2937;
}

/* Mobile-first responsive improvements */
@media (max-width: 640px) {

  /* Improved mobile typography */
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Better spacing on mobile */
  .section {
    padding: 3rem 1rem;
  }

  /* Mobile-optimized cards */
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Improved mobile navigation */
  .navbar {
    padding: 0.5rem 1rem;
  }

  /* Better mobile modal */
  .modal-container {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .modal-content {
    padding: 1.5rem;
  }

  /* Mobile form improvements */
  .form-group {
    margin-bottom: 1rem;
  }

  .form-input {
    padding: 0.875rem;
    font-size: 1rem;
  }

  /* Better mobile buttons */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }

  /* Mobile-optimized grid */
  .grid-cols-1 {
    gap: 1rem;
  }
}

@media (max-width: 768px) {

  /* Tablet improvements */
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Better tablet layout */
  .hero {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {

  .hover-lift:hover,
  .hover-scale:hover {
    transform: none;
  }

  .hover-lift:active {
    transform: translateY(-2px);
  }

  .hover-scale:active {
    transform: scale(1.02);
  }
}

/* Improved accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode AI Text Enhancement */
.dark .hero-title-enhanced .typed-text {
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 40px rgba(139, 92, 246, 0.4);
  font-weight: 800;
}

.dark .hero-subtitle-enhanced {
  color: #e5e7eb !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.dark .hero-subtitle-enhanced .highlight-text {
  color: #60a5fa !important;
  text-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
  font-weight: 700;
}

.dark .cta-title-enhanced {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.dark .cta-gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.5));
}

/* Additional AI text visibility improvements */
.dark .section-title-enhanced .text-gradient {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.4));
}

.dark .feature-title {
  color: #f9fafb !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.dark .feature-description {
  color: #d1d5db !important;
}

/* Mobile CTA Optimizations */
@media (max-width: 768px) {
  .hero-cta-section .btn-3d {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-cta-section .btn-glass-enhanced {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
  }

  .cta-btn-primary {
    padding: 1.25rem 2rem;
    font-size: 1rem;
    min-height: 4rem;
  }

  .cta-btn-secondary {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }

  .cta-buttons-container {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-btn-primary .cta-btn-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-btn-primary .cta-btn-content i {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  /* Mobile-specific hover states */
  .cta-btn-primary:active {
    transform: scale(0.98);
  }

  .cta-btn-secondary:active {
    transform: scale(0.98);
  }

  /* Larger touch targets */
  .btn-3d,
  .btn-glass-enhanced,
  .cta-btn-primary,
  .cta-btn-secondary {
    min-height: 48px;
    min-width: 120px;
  }

  /* Improved spacing for mobile */
  .hero-cta-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .professional-indicators {
    flex-direction: column;
    gap: 0.75rem;
  }

  .professional-indicators>div {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
  }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  .cta-btn-primary {
    padding: 1.5rem 2.5rem;
  }

  .cta-buttons-container {
    gap: 1.5rem;
  }
}

/* Enhanced CTA button animations */
.cta-btn-primary {
  position: relative;
  overflow: hidden;
}

.cta-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

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

/* Sticky mobile CTA */
@media (max-width: 768px) {
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  }

  .mobile-sticky-cta .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
  }
}

/* Loading states for CTA buttons */
.btn-loading {
  pointer-events: none;
  position: relative;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/* Enhanced focus states for accessibility */
.cta-btn-primary:focus,
.cta-btn-secondary:focus,
.btn-3d:focus,
.btn-glass-enhanced:focus {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cta-btn-primary {
    border: 2px solid currentColor;
  }

  .cta-btn-secondary {
    border: 2px solid currentColor;
    background: white;
    color: black;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  .cta-btn-primary,
  .cta-btn-secondary,
  .btn-3d,
  .btn-glass-enhanced {
    transform: none !important;
    animation: none !important;
  }

  .cta-btn-primary::before {
    display: none;
  }
}

/* ====================================
   Enhanced CTA Animations & Effects
==================================== */

/* CTA Particle Animations */
.cta-particle {
  position: absolute;
  background: linear-gradient(45deg, #4ade80, #22d3ee);
  border-radius: 50%;
  animation: ctaFloat 6s ease-in-out infinite;
  opacity: 0.7;
}

.cta-particle-1 {
  width: 20px;
  height: 20px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.cta-particle-2 {
  width: 15px;
  height: 15px;
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.cta-particle-3 {
  width: 25px;
  height: 25px;
  bottom: 20%;
  left: 20%;
  animation-delay: 2s;
}

.cta-particle-4 {
  width: 18px;
  height: 18px;
  top: 70%;
  right: 10%;
  animation-delay: 3s;
}

.cta-particle-5 {
  width: 12px;
  height: 12px;
  bottom: 10%;
  right: 25%;
  animation-delay: 4s;
}

.cta-particle-6 {
  width: 22px;
  height: 22px;
  top: 40%;
  left: 5%;
  animation-delay: 5s;
}

@keyframes ctaFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }

  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 0.9;
  }

  50% {
    transform: translateY(-40px) rotate(180deg);
    opacity: 1;
  }

  75% {
    transform: translateY(-20px) rotate(270deg);
    opacity: 0.9;
  }
}

/* Enhanced Button Hover Effects */
.btn-enhanced:hover {
  box-shadow:
    0 20px 40px rgba(16, 185, 129, 0.3),
    0 0 40px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* CTA Glow Animation */
.cta-glow {
  position: relative;
  overflow: hidden;
}

.cta-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.cta-glow:hover::before {
  animation: ctaShine 1.5s ease-in-out;
}

@keyframes ctaShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

/* Pulse Effect for CTA Buttons */
.cta-pulse {
  animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Enhanced Form Submit Button */
#submit-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #10b981, #059669, #047857);
  background-size: 200% 200%;
  animation: ctaGradientShift 4s ease infinite;
}

@keyframes ctaGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#submit-btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 10px 20px rgba(16, 185, 129, 0.3),
    0 0 20px rgba(16, 185, 129, 0.2);
}

/* Success Animation for Forms */
.success-checkmark {
  width: 80px;
  height: 115px;
  margin: 0 auto;
}

.success-checkmark .check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4ade80;
  margin: 0 auto;
}

.success-checkmark .check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotateCircle 4.25s ease-in;
}

.success-checkmark .check-icon::before,
.success-checkmark .check-icon::after {
  content: '';
  height: 100px;
  position: absolute;
  background: #fff;
  transform: rotate(-45deg);
}

.success-checkmark .check-icon .icon-line {
  height: 5px;
  background-color: #4ade80;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: iconLineTip 0.75s;
}

.success-checkmark .check-icon .icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: iconLineLong 0.75s;
}

@keyframes rotateCircle {
  0% {
    transform: rotate(-45deg);
  }

  5% {
    transform: rotate(-45deg);
  }

  12% {
    transform: rotate(-405deg);
  }

  100% {
    transform: rotate(-405deg);
  }
}

@keyframes iconLineTip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }

  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }

  100% {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}

@keyframes iconLineLong {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }

  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

/* CTA Badge Animations */
.cta-badge {
  animation: ctaBadgeBounce 2s ease-in-out infinite;
}

@keyframes ctaBadgeBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-5px);
  }

  60% {
    transform: translateY(-3px);
  }
}

/* Loading States for CTAs */
.cta-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.cta-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: ctaSpin 1s linear infinite;
}

@keyframes ctaSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* Contact detail card: ensure readable text in both light and dark modes */
.contact-card {
  background-color: var(--bg-primary);
  /* force readable text in light mode */
  color: #111111 !important;
}

.message-content {
  color: inherit !important;
}

/* make sure all children inside contact card inherit the forced color */
.contact-card,
.contact-card * {
  color: #111111 !important;
}

/* Dark mode: prefer white text and a dark background */
@media (prefers-color-scheme: dark) {
  .contact-card {
    background-color: #1f2937 !important;
    /* dark card bg */
  }

  .contact-card,
  .contact-card * {
    color: #ffffff !important;
  }
}

/* Also support a `.dark` theme class on the document root */
.dark .contact-card {
  background-color: #1f2937 !important;
}

.dark .contact-card,
.dark .contact-card * {
  color: #ffffff !important;
}

/* Ensure form inputs in contact/booking detail use readable text color */
.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card textarea,
.contact-card input,
.contact-card select {
  color: #111111 !important;
  background-color: transparent !important;
}

@media (prefers-color-scheme: dark) {

  .contact-card input[type="text"],
  .contact-card input[type="email"],
  .contact-card textarea,
  .contact-card input,
  .contact-card select {
    color: #ffffff !important;
  }
}

/* Placeholder colors for inputs and textareas used in contact detail and forms */
input::placeholder,
textarea::placeholder {
  color: #111111 !important;
  /* dark placeholder on light bg */
  opacity: 1 !important;
}

@media (prefers-color-scheme: dark) {

  input::placeholder,
  textarea::placeholder {
    color: #e2e8f0 !important;
    /* light placeholder on dark bg */
  }
}

.dark input::placeholder,
.dark textarea::placeholder {
  color: #e2e8f0 !important;
}

/* Chat widget specific styles (appended) */

/* Toggle animations and shadow */
#chat-toggle {
  box-shadow: var(--chat-toggle-shadow);
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 220ms ease, background 220ms ease;
}

#chat-toggle:active {
  transform: translateY(2px) scale(0.98);
}

/* Subtle horizontal vibration (small jitter) to draw attention without being distracting */
@keyframes chat-vibrate-subtle {
  0% {
    transform: translateX(0);
  }

  10% {
    transform: translateX(-2px) rotate(-0.6deg);
  }

  20% {
    transform: translateX(2px) rotate(0.6deg);
  }

  30% {
    transform: translateX(-1.5px) rotate(-0.4deg);
  }

  40% {
    transform: translateX(1.5px) rotate(0.4deg);
  }

  60% {
    transform: translateX(-1px) rotate(-0.2deg);
  }

  80% {
    transform: translateX(1px) rotate(0.2deg);
  }

  100% {
    transform: translateX(0);
  }
}

/* Apply gentle infinite vibration, but only when user allows motion */
#chat-toggle {
  animation: chat-vibrate-subtle 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  #chat-toggle {
    animation: none !important;
  }
}



/* Panel background aware of theme */
#chat-panel {
  background: var(--chat-bg);
  color: var(--chat-text);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dark #chat-panel {
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.9), rgba(4, 8, 15, 0.95));
  color: var(--chat-text);
  border-color: rgba(255, 255, 255, 0.04);
}

/* Assistant and user bubbles distinct for each theme */
#chat-panel .assistant-bubble {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.06));
  color: var(--chat-text);
  padding: .5rem .75rem;
  border-radius: 12px;
}

.dark #chat-panel .assistant-bubble {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.06), rgba(139, 92, 246, 0.12));
  color: var(--chat-text);
}

#chat-panel .user-bubble {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: .5rem .75rem;
  border-radius: 12px;
}

.dark #chat-panel .user-bubble {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* Floating pill transition */
#chat-pill {
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 220ms ease, right 220ms ease;
}

/* Subtle unread pulse */
#chat-widget.unread #chat-toggle::after {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  left: 4px;
  top: 4px;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.18);
  animation: pulse 2s infinite;
}

/* small helper for the animation when opening */
@keyframes chat-rotate-in {
  0% {
    transform: rotate(-8deg) scale(.96);
    opacity: 0;
  }

  60% {
    transform: rotate(6deg) scale(1.02);
    opacity: 1;
  }

  100% {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

#chat-panel.chat-open {
  animation: chat-rotate-in 240ms cubic-bezier(0.2, 0.9, 0.2, 1);
}