/* BitBatch Custom Styles */

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

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

/* Global styles */
html {
  scroll-behavior: smooth;
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
}

/* Hero section */
.hero-animation {
  animation: fadeIn 0.8s ease-out forwards;
}

.hero-heading__words {
  height: 80px;
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.hero-heading__words .change {
  text-align: center;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(99, 102, 241, 0.15);
  background: linear-gradient(to right, #4338ca, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.25rem;
  line-height: 2.5rem;
}

@media (min-width: 768px) {
  .hero-heading__words .change {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

/* Gradient backgrounds */
.has-blue-700-to-blue-500-to-grey-300-to-purple-300-to-purple-500-gradient-background {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 40%, #f5f7fb 60%, #f8fafc 100%);
  position: relative;
}

.has-blue-700-to-blue-500-to-grey-300-to-purple-300-to-purple-500-gradient-background::after {
  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='%23e0e7ff' fill-opacity='0.4'%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");
  z-index: 0;
  pointer-events: none;
}

.has-blue-700-to-blue-500-to-grey-300-to-purple-300-to-purple-500-gradient-background > * {
  position: relative;
  z-index: 1;
}

/* Card hover effects */
.feature-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

/* Button effects */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

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

/* Shadow effects */
.shadow-soft {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Custom focus states */
a:focus, button:focus {
  outline: 2px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
}

/* Carousel Styles */
.tools-carousel {
  position: relative;
}

.carousel-slide {
  transition: all 0.3s ease;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.carousel-prev,
.carousel-next {
  background-color: white;
  border: 1px solid #e5e7eb;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #4338ca;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: #4338ca;
  color: white;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin: 0 1rem;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e5e7eb;
  margin: 0 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background-color: #4338ca;
}

/* Mobile menu animation */
.mobile-menu-enter {
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-menu-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s, transform 0.2s;
}

.mobile-menu-exit {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-exit-active {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s, transform 0.2s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #818cf8;
}

/* Image shadow effect */
.img-shadow {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text */
.gradient-text {
  background-image: linear-gradient(135deg, #6366F1, #A855F7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.testimonial-card:hover {
  transform: translateY(-5px);
}

/* Call to action button animation */
.cta-button:hover {
  animation: pulse 1s infinite;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-heading__words {
    height: 40px;
  }
}

/* Add classes to elements in HTML as needed */

/* Add animations for hero section */

/* Animation for the typing effect in terminal */
.typing-animation {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid currentColor;
  white-space: nowrap;
  animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: currentColor }
}

/* Animation for rotating words */
.hero-words {
  animation: slide 10s infinite;
}

.animate-slide {
  display: flex;
  align-items: center;
  height: 3rem;
}

@keyframes slide {
  0% { transform: translateY(0); }
  20% { transform: translateY(0); }
  25% { transform: translateY(-3rem); }
  45% { transform: translateY(-3rem); }
  50% { transform: translateY(-6rem); }
  70% { transform: translateY(-6rem); }
  75% { transform: translateY(-9rem); }
  95% { transform: translateY(-9rem); }
  100% { transform: translateY(-12rem); }
} 