/* Custom styles for Numba landing page */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Animation classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Custom hover effects */
.hover-lift:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

/* Custom gradient backgrounds */
.gradient-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* Custom shadows */
.shadow-custom {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive text scaling */
@media (max-width: 640px) {
  .hero-title {
    font-size: 3rem;
    line-height: 1.1;
  }
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Icon hover effects */
.icon-hover:hover {
  transform: rotate(5deg) scale(1.1);
  transition: transform 0.2s ease;
}

/* Testimonial card hover effects */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Star rating filled effect */
.star-filled {
  fill: currentColor;
}

/* Custom loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Mobile-first responsive design improvements */
@media (min-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
}

/* Accessibility improvements */
.focus-visible:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none;
  }
}

/* Phone Mockup Styles */
.phone-mockup {
  max-width: 200px;
  margin: 0 auto;
  position: relative;
}

.phone-frame {
  background: linear-gradient(145deg, #1a1a1a, #333);
  border-radius: 25px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #444;
  border-radius: 3px;
}

.phone-screen {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  position: relative;
}

.screen-demo {
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.status-bar {
  padding: 8px 16px;
  color: #333;
  font-size: 12px;
  font-weight: 600;
}

.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
}

/* Phone Animation */
.phone-float-1 {
  animation: float 4s ease-in-out infinite;
}

.phone-float-2 {
  animation: float 4s ease-in-out infinite 1.3s;
}

.phone-float-3 {
  animation: float 4s ease-in-out infinite 2.6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Contact Sync Animation */
.sync-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  animation: sync-pulse 1.5s ease-in-out infinite;
}

.dot-2 {
  animation-delay: 0.2s;
}

.dot-3 {
  animation-delay: 0.4s;
}

@keyframes sync-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Typing Animation */
.typing-animation {
  font-family: monospace;
  font-size: 16px;
  color: #3b82f6;
  position: relative;
}

.typing-animation::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Send Button Pulse */
.send-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
  }
}

/* Message Sending Animation */
.message-sending {
  opacity: 0;
  animation: fade-in-up 0.5s ease-out 1s forwards;
}

.message-bubble {
  background: #e5e7eb;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: #374151;
  display: inline-block;
}

/* Contact Save Animation */
.save-animation {
  transform: scale(0.95);
  animation: save-grow 2s ease-out 1.5s forwards;
}

@keyframes save-grow {
  0% {
    transform: scale(0.95);
    border-color: #e5e7eb;
  }
  50% {
    transform: scale(1.05);
    border-color: #10b981;
  }
  100% {
    transform: scale(1);
    border-color: #10b981;
  }
}

.save-complete {
  animation: fade-in-up 0.5s ease-out 3s forwards;
}

/* Mobile Responsiveness for Phone Mockups */
@media (max-width: 768px) {
  .phone-mockup {
    max-width: 150px;
  }
  
  .screen-demo {
    min-height: 300px;
  }
  
  .app-content {
    padding: 0 12px;
  }
  
  .phone-frame {
    padding: 8px;
  }
  
  /* Mobile-specific hero adjustments */
  .hero-section {
    padding: 60px 20px;
  }
  
  /* Better mobile spacing */
  .section-spacing {
    padding: 60px 20px;
  }
  
  /* Mobile-friendly buttons */
  .mobile-button {
    width: 100%;
    margin-bottom: 12px;
  }
  
  /* Mobile grid adjustments */
  .mobile-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Hover Effects for Phone Mockups */
.phone-mockup:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.phone-mockup:hover .phone-frame {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Emoji Animations */
.emoji-bounce {
  animation: bounce-gentle 3s ease-in-out infinite;
}

.emoji-shake {
  animation: shake-gentle 4s ease-in-out infinite;
}

.emoji-pulse {
  animation: pulse-scale 2.5s ease-in-out infinite;
}

@keyframes bounce-gentle {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-8px);
  }
}

@keyframes shake-gentle {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: rotate(-3deg);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(3deg);
  }
}

@keyframes pulse-scale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Hover effects for emojis */
.emoji-bounce:hover {
  animation-duration: 0.6s;
}

.emoji-shake:hover {
  animation-duration: 0.5s;
}

.emoji-pulse:hover {
  animation-duration: 0.8s;
}

/* Confetti Animations */
.confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.confetti-1 {
  background: #ff6b6b;
  border-radius: 50%;
  top: 10%;
  left: 15%;
  animation: confetti-fall 8s linear infinite;
}

.confetti-2 {
  background: #4ecdc4;
  width: 8px;
  height: 8px;
  top: 20%;
  right: 20%;
  animation: confetti-fall 6s linear infinite 1s;
  transform: rotate(45deg);
}

.confetti-3 {
  background: #45b7d1;
  border-radius: 50%;
  top: 5%;
  right: 10%;
  animation: confetti-fall 10s linear infinite 2s;
}

.confetti-4 {
  background: #f9ca24;
  width: 10px;
  height: 10px;
  top: 30%;
  left: 80%;
  animation: confetti-fall 7s linear infinite 0.5s;
  transform: rotate(45deg);
}

.confetti-5 {
  background: #f0932b;
  border-radius: 50%;
  top: 15%;
  left: 70%;
  animation: confetti-fall 9s linear infinite 3s;
}

.confetti-6 {
  background: #eb4d4b;
  width: 6px;
  height: 6px;
  top: 25%;
  left: 5%;
  animation: confetti-fall 5s linear infinite 1.5s;
}

.confetti-7 {
  background: #6c5ce7;
  border-radius: 50%;
  top: 8%;
  left: 40%;
  animation: confetti-fall 12s linear infinite 2.5s;
}

.confetti-8 {
  background: #a29bfe;
  width: 8px;
  height: 8px;
  top: 35%;
  right: 30%;
  animation: confetti-fall 8s linear infinite 4s;
  transform: rotate(45deg);
}

.confetti-9 {
  background: #00b894;
  border-radius: 50%;
  top: 10%;
  left: 25%;
  animation: confetti-float 15s linear infinite;
}

.confetti-10 {
  background: #e84393;
  width: 10px;
  height: 10px;
  top: 20%;
  right: 15%;
  animation: confetti-float 12s linear infinite 2s;
  transform: rotate(45deg);
}

.confetti-11 {
  background: #fd79a8;
  border-radius: 50%;
  top: 30%;
  left: 10%;
  animation: confetti-float 18s linear infinite 1s;
}

.confetti-12 {
  background: #fdcb6e;
  width: 8px;
  height: 8px;
  top: 15%;
  left: 60%;
  animation: confetti-float 14s linear infinite 3s;
}

.confetti-13 {
  background: #e17055;
  border-radius: 50%;
  top: 25%;
  right: 25%;
  animation: confetti-float 16s linear infinite 0.5s;
}

.confetti-14 {
  background: #00cec9;
  width: 12px;
  height: 12px;
  top: 5%;
  left: 80%;
  animation: confetti-float 10s linear infinite 4s;
  transform: rotate(45deg);
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  35% {
    transform: translateY(200px) rotate(250deg);
    opacity: 1;
  }
  45% {
    opacity: 0;
  }
  65% {
    opacity: 0;
    transform: translateY(400px) rotate(400deg);
  }
  75% {
    opacity: 1;
  }
  90% {
    transform: translateY(calc(100vh - 50px)) rotate(700deg);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 50px)) rotate(720deg);
    opacity: 0;
  }
}

@keyframes confetti-float {
  0% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  25% {
    transform: translateY(-20px) translateX(20px) rotate(90deg);
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
  60% {
    opacity: 0;
    transform: translateY(-10px) translateX(-15px) rotate(180deg);
  }
  70% {
    opacity: 0.9;
  }
  85% {
    transform: translateY(-5px) translateX(10px) rotate(270deg);
    opacity: 1;
  }
  95% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(0px) translateX(0px) rotate(360deg);
    opacity: 0;
  }
}

/* Mobile optimization for confetti */
@media (max-width: 768px) {
  .confetti {
    width: 8px;
    height: 8px;
  }
  
  .confetti-2, .confetti-4, .confetti-6, .confetti-8, .confetti-10, .confetti-12, .confetti-14 {
    width: 6px;
    height: 6px;
  }
}
