/* Custom styles for RK-Consulting website */

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

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

/* Custom hover effects */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(11, 58, 110, 0.1);
}

/* Service cards */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: #0B3A6E;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -8px rgba(11, 58, 110, 0.15);
}

/* Case study cards */
.case-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

.case-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.1);
}

.case-card:hover .case-image {
  transform: scale(1.1);
}

.case-image {
  transition: transform 0.3s ease;
}

/* Blog post cards */
.blog-card {
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
}

/* Form elements */
.form-input {
  transition: all 0.2s ease;
}

.form-input:focus {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px -5px rgba(11, 58, 110, 0.2);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0B3A6E 0%, #1e40af 100%);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(11, 58, 110, 0.4);
}

.btn-secondary {
  transition: all 0.2s ease;
}

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

/* Hero section */
.hero-gradient {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Trust indicators */
.trust-bullet {
  position: relative;
  padding-left: 1.5rem;
}

.trust-bullet::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #0B3A6E;
  font-weight: bold;
  font-size: 1.1em;
}

/* Social media feeds */
.social-feed {
  max-height: 400px;
  overflow-y: auto;
}

.social-feed::-webkit-scrollbar {
  width: 6px;
}

.social-feed::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.social-feed::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.social-feed::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Loading states */
.loading {
  opacity: 0.7;
  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 #0B3A6E;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Cookie banner */
#cookie-banner.show {
  transform: translateY(0);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-gradient {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .service-card,
  .case-card,
  .blog-card {
    margin-bottom: 1rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
  }
  
  .bg-brand-blue {
    color: black !important;
    background: white !important;
    border: 1px solid black !important;
  }
}

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

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}