@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  body {
    @apply font-sans antialiased;
  }
}

@layer components {
  .btn-primary {
    @apply inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-gradient-to-br from-primary-500 to-purple-500 hover:from-primary-600 hover:to-purple-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 transition-all duration-200;
  }
  
  /* Ensure white button overrides work properly on colored backgrounds */
  .btn-primary[class*="!bg-white"] {
    background: white !important;
    background-image: none !important;
  }
  
  .btn-primary[class*="!bg-white"]:hover {
    background: rgb(243 244 246) !important; /* gray-100 */
    background-image: none !important;
  }
  
  .btn-secondary {
    @apply inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 transition-colors duration-200;
  }
  
  .card {
    @apply bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden;
  }
  
  .card-body {
    @apply p-6;
  }
  
  .container-fluid {
    @apply w-full px-4 sm:px-6 lg:px-8 mx-auto;
  }
  
  .text-gradient {
    @apply bg-gradient-to-r from-primary-600 to-purple-600 bg-clip-text text-transparent;
  }
}

@layer utilities {
  .animation-delay-200 {
    animation-delay: 200ms;
  }
  
  .animation-delay-400 {
    animation-delay: 400ms;
  }
  
  .animation-delay-600 {
    animation-delay: 600ms;
  }
}
/* Klavo Theme Custom Styles */

/* Logo Styling */
.logo {
  height: 1.5rem; /* 24px - slightly bigger than nav text */
  width: auto;
  transition: all 0.3s ease;
}

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

/* Additional Gradient Backgrounds */
.bg-gradient-klavo {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-klavo-light {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Custom Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
}

@keyframes slide-in-left {
  from { 
    opacity: 0; 
    transform: translateX(-50px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes slide-in-right {
  from { 
    opacity: 0; 
    transform: translateX(50px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes bounce-in {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

.animate-float.animation-delay-500 {
  animation-delay: 0.5s;
}

.animate-float.animation-delay-1000 {
  animation-delay: 1s;
  animation-name: float-delayed;
}

.animate-float.animation-delay-1500 {
  animation-delay: 1.5s;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-slide-in-left {
  animation: slide-in-left 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slide-in-right 0.6s ease-out;
}

.animate-bounce-in {
  animation: bounce-in 0.6s ease-out;
}

/* Scroll-triggered animations - Default visible, only hidden when JS is enabled */
.animate-fade-in {
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

/* Only hide when JavaScript is available */
.js-enabled .animate-fade-in {
  opacity: 0;
}

.js-enabled .animate-fade-in.animate-in {
  opacity: 1;
}

.animate-slide-up {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease-in-out;
}

/* Only hide when JavaScript is available */
.js-enabled .animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
}

.js-enabled .animate-slide-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Service card animations */
.service-card {
  transition: all 0.3s ease;
  transform-origin: center;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.service-card .group-hover\:scale-110:hover {
  transform: scale(1.1);
}

/* Client logo animations - Default visible */
.client-logo-item {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.95s ease-in-out;
}

/* Only hide when JavaScript is available */
.js-enabled .client-logo-item {
  opacity: 0;
  transform: translateY(20px);
}

.js-enabled .client-logo-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Statistics counter styling */
.stat-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Hover Effects */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Text Effects */
.text-shadow-sm {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.text-shadow-md {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Glass Morphism Effects */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #6366f1, #8b5cf6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #4f46e5, #7c3aed);
}

/* Loading Spinner */
.spinner {
  border: 2px solid #f3f4f6;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
  padding: 16px;
  border-radius: 8px;
  color: white;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.notification-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notification-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Form Enhancements */
.form-floating {
  position: relative;
}

.form-floating input,
.form-floating textarea {
  padding: 12px 16px 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: transparent;
  transition: all 0.3s ease;
}

.form-floating input:focus,
.form-floating textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-floating label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  background: white;
  padding: 0 4px;
  color: #6b7280;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating textarea:focus + label,
.form-floating textarea:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%);
  font-size: 14px;
  color: #3b82f6;
}

/* Mobile Menu Enhancements */
@media (max-width: 1024px) {
  .mobile-menu-slide {
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .mobile-menu-slide.active {
    transform: translateX(0);
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    color: black !important;
    background: white !important;
  }
  
  .bg-gradient-to-r,
  .bg-gradient-to-br,
  .bg-gradient-to-l,
  .bg-gradient-to-bl {
    background: white !important;
    color: black !important;
  }
}

/* Accessibility Enhancements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
.focus-ring:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
  .auto-dark {
    color-scheme: dark;
  }
}

/* Custom Utilities */
.backdrop-blur-xs {
  backdrop-filter: blur(2px);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.backdrop-blur-md {
  backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(12px);
}

.backdrop-blur-xl {
  backdrop-filter: blur(16px);
}

/* Intersection Observer Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.fade-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.fade-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

.scale-in.animate {
  opacity: 1;
  transform: scale(1);
}

/* Performance optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.will-change-auto {
  will-change: auto;
}

/* Homepage-specific animations and effects */

/* Button hover enhancements */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* Form enhancements */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-300;
}

.form-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

/* Mobile menu body lock */
body.menu-open {
  overflow: hidden;
}

/* Header scroll effect */
header.scrolled {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Animation delays */
.animation-delay-200 {
  transition-delay: 200ms;
}

.animation-delay-400 {
  transition-delay: 400ms;
}

.animation-delay-600 {
  transition-delay: 600ms;
}

.animation-delay-800 {
  transition-delay: 800ms;
}

.animation-delay-1000 {
  transition-delay: 1000ms;
}

.animation-delay-1200 {
  transition-delay: 1200ms;
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive video embeds */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid currentColor;
  }
  
  .btn-secondary {
    border: 2px solid currentColor;
  }
}

/* Fallback: Show content after 5 seconds regardless of JS state */
.js-enabled .animate-fade-in,
.js-enabled .animate-slide-up,
.js-enabled .client-logo-item {
  animation: fallback-show 0.8s ease-in-out 3s forwards;
}

@keyframes fallback-show {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Always show content immediately when motion is reduced */
  .js-enabled .animate-fade-in,
  .js-enabled .animate-slide-up,
  .js-enabled .client-logo-item {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .auto-dark {
    background-color: #1f2937;
    color: #f9fafb;
  }
} 
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
