@import "tailwindcss";

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Premium Design System */
:root {
  /* Gradient Colors - Orange/Light Theme */
  --gradient-primary: linear-gradient(135deg, hsl(25, 95%, 55%) 0%, hsl(15, 90%, 50%) 100%);
  --gradient-secondary: linear-gradient(135deg, hsl(180, 70%, 40%) 0%, hsl(190, 80%, 45%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(210, 80%, 50%) 0%, hsl(200, 70%, 55%) 100%);
  --gradient-dark: linear-gradient(135deg, hsl(0, 0%, 98%) 0%, hsl(210, 20%, 96%) 100%);
  /* Now Light */
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);

  /* Colored Shadows */
  --shadow-primary: 0 4px 20px rgba(249, 115, 22, 0.3), 0 8px 40px rgba(249, 115, 22, 0.15);
  --shadow-secondary: 0 4px 20px rgba(13, 148, 136, 0.2), 0 8px 40px rgba(13, 148, 136, 0.1);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 8px 30px rgba(249, 115, 22, 0.15), 0 12px 50px rgba(249, 115, 22, 0.05);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease-out;
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: hsl(215, 25%, 20%);
  /* Dark Gray Text */
}

/* Gradient Text Effect */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-secondary {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gradient Background */
.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
}

.bg-gradient-dark {
  background: var(--gradient-dark);
}

/* Enhanced Card Styles */
.card-premium {
  position: relative;
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}

.card-premium:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(249, 115, 22, 0.3);
}

.card-premium:hover::before {
  opacity: 0.05;
}

/* Gradient Border Effect */
.gradient-border {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.gradient-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gradient-border:hover::before {
  opacity: 1;
}

/* Animated Gradient Button */
.btn-gradient {
  position: relative;
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
  overflow: hidden;
  transition: var(--transition-smooth);
}

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

.btn-gradient:hover::before {
  left: 100%;
  transition: left 0.6s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* Shimmer Animation for Loading States */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.05) 100%);
  background-size: 1000px 100%;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.fade-in-delay-1 {
  animation: fadeIn 0.6s ease-out 0.1s both;
}

.fade-in-delay-2 {
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.fade-in-delay-3 {
  animation: fadeIn 0.6s ease-out 0.3s both;
}

/* Pulse Animation */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

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

.input:focus-within {
  border-color: hsl(25, 95%, 55%);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
  transform: translateY(-1px);
  transition: var(--transition-smooth);
}

/* Navbar Enhancements */
.navbar-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

[data-theme="dark"] .navbar-glass,
[data-theme="business"] .navbar-glass {
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badge Enhancements */
.badge-gradient {
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-weight: 600;
}

.badge-gradient-secondary {
  background: var(--gradient-secondary);
  color: white;
  border: none;
  font-weight: 600;
}

/* Stat Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

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

/* Hover Scale Effect */
.hover-scale {
  transition: var(--transition-smooth);
}

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

/* Gradient Overlay */
.gradient-overlay {
  position: relative;
}

.gradient-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
}

/* Loading Spinner Enhancement */
.loading-spinner-gradient {
  border-top-color: hsl(25, 95%, 55%);
  border-right-color: hsl(15, 90%, 50%);
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, hsl(25, 95%, 55%) 0%, hsl(15, 90%, 50%) 50%, hsl(35, 100%, 60%) 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 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%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}