/* Custom styles for Blau Technology static site */

/* Dot pattern backgrounds */
.dot-pattern {
  background-image: radial-gradient(circle at 1px 1px, hsl(215 25% 27%) 1px, transparent 0);
  background-size: 40px 40px;
}

.dot-pattern-light {
  background-image: radial-gradient(circle at 1px 1px, hsl(215 20% 40%) 1px, transparent 0);
  background-size: 32px 32px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-fade-in-delay {
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.15s forwards;
}

.animate-fade-in-delay-2 {
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.3s forwards;
}

.animate-fade-in-delay-3 {
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.45s forwards;
}

.animate-slide-up {
  animation: slideUp 0.3s ease-out forwards;
}

/* Scroll animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast styles */
.fixed.bottom-4.right-4 {
  max-width: 320px;
}

/* Form focus states enhancement */
input:focus,
select:focus,
textarea:focus {
  border-color: hsl(217 71% 45%);
}

/* Smooth transitions for interactive elements */
a,
button {
  transition: all 0.2s ease;
}

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

::-webkit-scrollbar-track {
  background: hsl(210 20% 98%);
}

::-webkit-scrollbar-thumb {
  background: hsl(215 16% 47%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(215 25% 27%);
}

/* Ensure proper text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Mobile menu animation */
#mobile-menu {
  transition: opacity 0.2s ease, height 0.2s ease;
}

/* Button hover effects */
.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}

/* Backdrop blur fallback for older browsers */
@supports not (backdrop-filter: blur(12px)) {
  .backdrop-blur-md {
    background-color: rgba(12, 16, 24, 0.98);
  }

  .backdrop-blur-sm {
    background-color: rgba(23, 32, 44, 0.95);
  }
}

/* Ensure consistent box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Print styles */
@media print {
  header,
  #mobile-menu,
  .bg-hero-gradient {
    background: #fff !important;
    color: #000 !important;
  }

  .text-gradient {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: hsl(217 71% 45%) !important;
  }
}
