/* ShiftBot Main Styles */

/* Base */
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #fafafa;
}

.font-display {
  font-family: 'Sora', system-ui, sans-serif;
}

/* Chat widget styles */
.chat-widget {
  background: linear-gradient(135deg, #1a0440 0%, #0a0a0f 100%);
  box-shadow:
    0 50px 100px -20px rgba(130, 51, 255, 0.25),
    0 30px 60px -30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chat-message {
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(10px);
}

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

.typing-dot {
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Float animation */
.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Button hover effect */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -15px rgba(130, 51, 255, 0.5);
}

/* Feature card hover */
.feature-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -15px rgba(130, 51, 255, 0.15);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pricing card */
.pricing-popular {
  background: linear-gradient(135deg, #8233ff 0%, #6410e1 100%);
  transform: scale(1.05);
}

.pricing-popular::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #ffca00 0%, #8233ff 50%, #ffca00 100%);
  border-radius: 28px;
  z-index: -1;
  opacity: 0.5;
}

/* Trust badge pulse */
.trust-badge {
  position: relative;
}

.trust-badge::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, rgba(130, 51, 255, 0.2), rgba(255, 202, 0, 0.2));
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.trust-badge:hover::after {
  opacity: 1;
}

/* Scroll indicator */
.scroll-indicator {
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Input focus */
.form-input:focus {
  outline: none;
  border-color: #8233ff;
  box-shadow: 0 0 0 4px rgba(130, 51, 255, 0.1);
}

/* Custom cursor for interactive elements */
@media (hover: hover) {
  a, button {
    cursor: pointer;
  }
}

/* ===== Widget Click Animation ===== */

/* Cursor movement animation */
@keyframes cursorMove {
  0% {
    opacity: 0;
    transform: translate(80px, -60px);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* Cursor click animation */
@keyframes cursorClick {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.85); }
}

/* Click ripple effect */
@keyframes clickRipple {
  0% {
    transform: scale(0.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Button hide animation */
@keyframes buttonHide {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

/* Widget open animation */
@keyframes widgetOpen {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(30px);
  }
  60% {
    transform: scale(1.02) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
